duckdb-rs
duckdb-rs copied to clipboard
Ergonomic bindings to duckdb for Rust
Closes #342 Allows the `Connection` to be interrupted, which is useful for cancelling long-running queries.
(Hopefully) includes a work-around for the broken github actions Windows runners (see https://github.com/actions/runner-images/issues/10004)
The `Connection` hides away the raw duckdb connection object in private fields: ```rust /// A connection to a DuckDB database. pub struct Connection { db: RefCell, cache: StatementCache, path: Option,...
1. Strong types for duck db vectors. 2. Ensure correct size are reserved before writing to duckdb vectors. 3. Introduce `DataChunkHandle` for manipulating data chunks, and wrap unsafe functions at...
## Issue Failing on constraints referring to an enum's value. ## Reproduce [Go to this repo, and `cargo test`](https://github.com/OliverKillane/bug-reports/tree/main/duckdb_allocator_size_0_assert) ```rust #[cfg(test)] mod tests { use duckdb::{params, Connection}; #[test] fn incorrect_behaviour()...
The `&mut` reference was not required here, this solved a use case for us where we wanted to query while the statement was immutably borrowed.
Hello, Currently i wrap `Vec` as `MyVec` and implement something like this: ```rust impl duckdb::ToSql for MyVec { #[inline] fn to_sql(&self) -> duckdb::Result
```toml [dependencies] duckdb = { version = "0.10.2", features = ["bundled"] } ``` ```rs use duckdb::Connection; fn main() { let conn = Connection::open_in_memory().unwrap(); conn.execute("CREATE TABLE test (id uuid primary key...
Is there a way to get a `Vec` from an array column?