Function get_or_open_database

Source
fn get_or_open_database(name: &str, kind: DbKind) -> Result<Arc<Database>>
Expand description

Open or fetch from the pool a Database for the given name and kind.

Today both kinds share the same on-disk implementation. In the future, DbKind::Wrapped can be switched to use an additional in-memory layer with compression/encryption and periodic flushes to disk while keeping the same pooling API surface.