Asynchronous ClickHouse client library for Rust programming language.
Asynchronous ClickHouse client library for Rust programming language.
Asynchronous Yandex ClickHouse client library for rust programming language.
Library hosted on crates.io.
[dependencies]
clickhouse-rs = "*"schema://user:password@host[:port]/database?param1=value1&...¶mN=valueNparameters:
compression - Whether or not use compression (defaults to none). Possible choices:
nonelz4connection_timeout - Timeout for connection (defaults to 500 ms)
query_timeout - Timeout for queries (defaults to 180 sec).
insert_timeout - Timeout for inserts (defaults to 180 sec).
execute_timeout - Timeout for execute (defaults to 180 sec).
keepalive - TCP keep alive timeout in milliseconds.
nodelay - Whether to enable TCP_NODELAY (defaults to true).
pool_min - Lower bound of opened connections for Pool (defaults to 10).
pool_max - Upper bound of opened connections for Pool (defaults to 20).
ping_before_query - Ping server every time before execute any query. (defaults to true).
send_retries - Count of retry to send request to server. (defaults to 3).
retry_timeout - Amount of time to wait before next retry. (defaults to 5 sec).
ping_timeout - Timeout for ping (defaults to 500 ms).
alt_hosts - Comma separated list of single address host for load-balancing.
example:
tcp://user:password@host:9000/clicks?compression=lz4&ping_timeout=42msclickhouse-rs puts some functionality behind optional features to optimize compile time
for the most common use cases. The following features are available.
tokio_io (enabled by default) — I/O based on Tokio.async_std — I/O based on async-std (doesn't work together with tokio_io).tls — TLS support (allowed only with tokio_io).…No open issues yet, or sync has not completed.