Registry / database / taos-query

taos-query

JSON →
library0.12.4rscratesunverified

Driver for TDengine - a timeseries database and analysis platform.

# Cargo.toml [dependencies] taos-query = "0.12.4"
INSTALL
IMPORT
SIG · TAOS-QUERY
T
taos-query
databaserustv0.12.4
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.

TaosBuilder
use taos_query::TaosBuilder;

Connects to TDengine and executes a query.

use taos_query::TaosBuilder; #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { let builder = TaosBuilder::from_dsn("taos://localhost:6030")?; let taos = builder.build().await?; taos.exec("CREATE DATABASE IF NOT EXISTS test").await?; Ok(()) }
Debug
Known issues
gotchaRequires async runtime (tokio) for connection and query execution.
fix
Add tokio as a dependency and use #[tokio::main] or another async runtime.
affects: >=0.12.0
Upgrade
Version history
0.12.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
22
Meta
1
Bingbot
1
OpenAI (training)
1
Resources
taos-query — cargo add taos-query · libregistry