Registry / database / clickhouse

clickhouse

JSON →
library0.15.0rscratesunverified

Official Rust client for ClickHouse DB, providing async query execution and data ingestion.

# Cargo.toml [dependencies] clickhouse = "0.15.0"
INSTALL
IMPORT
SIG · CLICKHOUSE
C
clickhouse
databaserustv0.15.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Client
use clickhouse::Client;

Connect to a ClickHouse server and execute a query.

use clickhouse::Client; #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { let client = Client::default().with_url("http://localhost:8123"); let result = client.query("SELECT 1").fetch_all::<i32>().await?; println!("{:?}", result); Ok(()) }
Debug
Known issues
gotchaRequires an async runtime (e.g., tokio) and the `tls` feature for HTTPS connections.
fix
Add tokio as a dependency and enable the `tls` feature if using HTTPS.
affects: >=0.1.0
Upgrade
Version history
0.15.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
16
Amazon
1
OpenAI (training)
1
Resources
clickhouse — cargo add clickhouse · libregistry