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

ClickHouse Integration #376

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

Anefu
Copy link

@Anefu Anefu commented Oct 30, 2024

Add support for ClickHouse MySQL

Closes #346

TODO:

  • Add sha256_[password|hash], bcrypt_[password|hash] auth plugin
  • Find workaround for prepared statements (may not be supported by ClickHouse)
  • Extend col_def parsing
  • Integration tests
  • etc

@Anefu Anefu marked this pull request as ready for review October 30, 2024 17:35
@@ -290,7 +292,13 @@ boost::mysql::error_code boost::mysql::detail::deserialize_ok_packet(

if (ctx.enough_size(1)) // message is optional, may be omitted
{
err = pack.info.deserialize(ctx);
if (flavor == db_flavor::clickhouse) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you can avoid the variant altogether - just create and deserialize the string_lenenc or string_eof depending on the case. Since this lib supports back to cpp11, unfortunately you can't use generic lambdas, so I think this is easier.

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.

Support clickhouse
2 participants