Skip to content

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
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