duckdb / duckdb-rs

Ergonomic bindings to duckdb for Rust
MIT License
506 stars 112 forks source link

how to create multiple in memory database? #364

Open zeroxaa opened 3 months ago

zeroxaa commented 3 months ago

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

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

jhpratt commented 3 months 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 3 months 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.