Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Electronic-Waste
Copy link

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 <[email protected]>
@Electronic-Waste Electronic-Waste marked this pull request as draft March 27, 2025 08:23
let query_str = query.to_str().unwrap();
tokio::runtime::Runtime::new()
.unwrap()
.block_on(self.connection.exec(query_str, None))
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
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!

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.

2 participants