pub type DbSpec<K, V, C> = DbBuilder<K, V, C, Option<CString>>;
Expand description
Type alias for DbBuilder
which has a name set (or
unnamed database selected)
Values of type DbSpec<K, V, C>
are created by creating a new
DbBuilder
with DbBuilder::new
, setting the desired options, and
then invoking DbBuilder::name
or DbBuilder::unnamed
.
Values of type DbSpec<K, V, C>
can be passed to the following methods in
order to create and/or open databases:
Env::open_db
EnvRw::create_db
(same asEnv::open_db
but creates the database if not existent)EnvRef::open_or_create_db
(never creates the database if called on&EnvRo
)