Skip to content

Support Custom Query Type Format #429

@JakkuSakura

Description

@JakkuSakura

Is your feature request related to a problem? Please describe.
I'm trying to integrate 3rd party types into clickhouse-connect. For example, whenever.Instant
I found them useful here:
https://clickhouse.com/docs/en/integrations/python#write-formats
https://clickhouse.com/docs/en/integrations/python#read-formats
The write-format could be related, but I found the query string formatting is its own function and rather limited.

Describe the solution you'd like
It would be best to add set_query_format, and refers to it when constructing query SQL.

Describe alternatives you've considered
I tried monkey-patching. I did patching format_bind_value and format_query_value. but the meanings of them are unclear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions