pub(super) fn initialize_databases(rkv: &Rkv, kind: &EnvironmentKind) -> DatabaseResult<()> {
    let mut dbmap = DB_MAP_MAP.write();
    let path = rkv.path().to_owned();
    match dbmap.entry(path.clone()) {
        hash_map::Entry::Occupied(_) => {
            return Err(DatabaseError::EnvironmentDoubleInitialized(path));
        }
        hash_map::Entry::Vacant(e) => e.insert({
            let mut um = UniversalMap::new();
            register_databases(&rkv, kind, &mut um)?;
            um
        }),
    };
    Ok(())
}
/// Get access to the singleton database manager ([GetDb]),
/// in order to access individual LMDB databases
Get access to the singleton database manager ([GetDb]),
in order to access individual LMDB databases
Get access to the singleton database manager ( [ GetDb ] ) in order to access individual LMDB databases
pub(super) fn initialize_databases(rkv: &Rkv, kind: &EnvironmentKind) -> DatabaseResult<()> {
    let mut dbmap = DB_MAP_MAP.write();
    let path = rkv.path().to_owned();
    match dbmap.entry(path.clone()) {
        hash_map::Entry::Occupied(_) => {
            return Err(DatabaseError::EnvironmentDoubleInitialized(path));
        }
        hash_map::Entry::Vacant(e) => e.insert({
            let mut um = UniversalMap::new();
            register_databases(&rkv, kind, &mut um)?;
            um
        }),
    };
    Ok(())
}
pub ( super ) fn initialize_databases ( rkv : & Rkv , kind : & EnvironmentKind ) -> DatabaseResult < ( ) > { let mut dbmap = DB_MAP_MAP . write ( ) ; let path = rkv . path ( ) . to_owned ( ) ; match dbmap . entry ( path . clone ( ) ) { hash_map :: Entry :: Occupied ( _ ) => { return Err ( DatabaseError :: EnvironmentDoubleInitialized ( path ) ) ; } hash_map :: Entry :: Vacant ( e ) => e . insert ( { let mut um = UniversalMap :: new ( ) ; register_databases ( & rkv , kind , & mut um ) ? ; um } ) , } ; Ok ( ( ) ) }
Get access to the singleton database manager ([GetDb]),
in order to access individual LMDB databases
Get access to the singleton database manager ( [ GetDb ] ) in order to access individual LMDB databases
rkv
&Rkv
kind
&EnvironmentKind
rkv
&Rkv
kind
&EnvironmentKind