# duckdb2 [![Crates.io](https://img.shields.io/crates/v/duckdb2.svg?style=flat-square)](https://crates.io/crates/duckdb2) [![docs.rs](https://img.shields.io/badge/docs-rs-informational.svg?style=flat-square)](https://docs.rs/duckdb2) Simple DuckDB binding for Rust ## Usage ```bash cargo add duckdb2 ``` ```rust use duckdb2::{Database, Config}; fn main() { let config = Config::new(); let db = Database::open_with("./test.db", config).unwrap(); let conn = db.connect().unwrap(); conn.execute("CREATE TABLE IF NOT EXISTS users (id int32, age int8)").unwrap(); conn.execute("INSERT INTO users VALUES (1, 18), (2, 22), (3, 32);").unwrap(); let query = conn.query("SELECT * FROM users").unwrap(); dbg!(query); } ```