clickhouse.rs
clickhouse.rs copied to clipboard
Automatically set `query_id`
Use case
ClickHouse supports the replace_running_query feature: https://clickhouse.com/docs/operations/settings/settings#replace_running_query
query_id can be set manually via with_option(), but we should be setting this automatically.
Describe the solution you'd like
Query::get_query_id()- If
query_idis not previously set, generate and store a query ID to return it? E.g. usingOnceLock?
- If
Query::with_query_id()- Like other explicit setters, easier to discover and use than
with_option().
- Like other explicit setters, easier to discover and use than
Questions:
- [ ] Should
InsertandInsertergain this as well?
Describe the alternatives you've considered
Additional context
1.0 wishlist: feature parity