rs-db-driver-duckdb-duckdb 0.1.0
DuckDB: duckdb (the driver, re-exported, with a runnable example)
Install
cargo add rs-db-driver-duckdb-duckdb --registry rupm
In Ruststudio: Packages, search for rs-db-driver-duckdb-duckdb, Install.
Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-23.
Versions
- 0.1.0 2026-11-23
README
# rs-db-driver-duckdb-duckdb
DuckDB - duckdb: embedded analytics database
Add it with `rupm add rs-db-driver-duckdb-duckdb` (or `cargo add rs-db-driver-duckdb-duckdb --registry rupm`). The driver `duckdb` is re-exported as `rs_db_driver_duckdb_duckdb::duckdb`.
**Needs on the PC:** a C++ compiler (DuckDB is compiled with your program)
The first build takes minutes (a C or C++ library is compiled).
## Example
```rust
use duckdb::{Connection, Result};
fn main() -> Result<()> {
let conn = Connection::open_in_memory()?;
let n: i64 = conn.query_row("SELECT 42", [], |r| r.get(0))?;
println!("DuckDB answered {n}");
Ok(())
}
```