clickhouse-rs
clickhouse-rs copied to clipboard
Asynchronous ClickHouse client library for Rust programming language.
`query_id` is helpful in inspecting the executed query from table `system.query_log`: > https://clickhouse.com/docs/en/operations/system-tables/query_log/ The [clickhouse-driver](https://clickhouse-driver.readthedocs.io/en/latest/) in python has already supported this feature: > https://clickhouse-driver.readthedocs.io/en/latest/features.html#specifying-query-id
This PR replaces the FFI call to the C implementation of cityhash with a pure Rust implementation in the `cityhash-rs` crate.
I use the latest version which is `1.0.0-alpha.1` cause tokio 1.x Here is the code to use DateTime64 ``` block .push(row! { time_col: DateTime64(row_data.event_at.timestamp_millis(), (3, UTC)) .......... }) ``` But...
Hi! I have trouble inserting DateTime64 values into a table that looks like this: ```sql CREATE TABLE default ( `id` UInt32, `date` DateTime64(9, 'UTC') ) ENGINE = MergeTree() PRIMARY KEY...
`clickhouse-rs` uses an outdated version of [the `uuid` crate](https://www.tremor.rs/docs/edge/reference/connectors/elastic). This PR updates it.
The library currently does not support sending a query with parameters out of band (eg: to avoid sql injections). It would be nice to have a way to send a...
Closes #153 The old put_param method had a Cow passed into it, but was never written to. Therefore, I thought &str was easier for downstream uses Includes doctest
Adds support for inserting a Vec in much the same way that arrays are supported for other data types. This can also be replicated for Enum16
Hello, Thanks for the crate! Are there any plans to add support for `Map`s to the library? I'm trying to use that for dynamic data to get away from stuffing...
It's necessary to create an empty `Block` sometimes, to avoid incompatible types. But now Block::new can only create an empty `Block` https://github.com/suharev7/clickhouse-rs/blob/84a35d516bb40dea746b1ea070a8b99d82498fb7/src/types/block/mod.rs#L140-L144