Skip to content

feat(cpp): Add cpp driver with rust binding. - #609

Closed
Electronic-Waste wants to merge 1 commit into
databendlabs:mainfrom
Electronic-Waste:feat/binding-c-plus-plus
Closed

feat(cpp): Add cpp driver with rust binding.#609
Electronic-Waste wants to merge 1 commit into
databendlabs:mainfrom
Electronic-Waste:feat/binding-c-plus-plus

Conversation

@Electronic-Waste

Copy link
Copy Markdown

As we scheduled before, we decided to implement an ODBC driver for Databend. Unlike ClickHouse, we prefer to use native client (bendsql) than http client to connect to the database. However, we haven't had C++ driver for databend up to now, which means that we should implement it right now to support ODBC driver.

This PR will implement the cpp driver with rust binding, including:

  • cpp driver
  • Some e2e tests
  • User Doc

/cc @flaneur2020 @hantmac @everpcpc @ZhiHanZ

Signed-off-by: Electronic-Waste <2690692950@qq.com>
@Electronic-Waste
Electronic-Waste marked this pull request as draft March 27, 2025 08:23
Comment thread bindings/cpp/src/lib.rs
let query_str = query.to_str().unwrap();
tokio::runtime::Runtime::new()
.unwrap()
.block_on(self.connection.exec(query_str, None))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure! I'll update it. Thanks for your review!

@sundy-li

sundy-li commented Sep 9, 2026

Copy link
Copy Markdown
Member

Review result: closing this PR.

Reason: This PR has remained a draft since 2025-03-27 and only contains the initial C++ binding skeleton. It was not updated after review, and the current changes are missing main.cpp, tests, error handling, and complete C++ API/build validation, so they are not ready to merge. If a C++ driver is still needed, please redesign and submit a complete new PR based on the current bindings structure. Thanks for the contribution.

@sundy-li sundy-li closed this Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants