duckdb / duckdb-rs

Ergonomic bindings to duckdb for Rust
MIT License
464 stars 95 forks source link

how to create multiple in memory database? #364

Open zeroxaa opened 1 month ago

zeroxaa commented 1 month ago

i am using Connection::open_in_memory_with_flags(config)?;

i think it just open a connection to in memory db?

jhpratt commented 1 month ago

Having the ability to create multiple in-memory databases would be wonderful for testing. Right now tests must necessarily be run serially, which is not ideal.

zeroxaa commented 1 month ago

I actually need this for another reason, we want to create multiple transient databases for our customers, then those database can be query independently without interfering with each other.