/// Return a new Rkv environment that supports the specified number of open databases.
Return a new Rkv environment that supports the specified number of open databases.
Return a new Rkv environment that supports the specified number of open databases .
pub fn with_capacity(path: &Path, max_dbs: c_uint) -> Result<Rkv, StoreError> {
        if !path.is_dir() {
            return Err(StoreError::DirectoryDoesNotExistError(path.into()));
        }
        let mut builder = Environment::new();
        builder.set_max_dbs(max_dbs);
        // Future: set flags, maximum size, etc. here if necessary.
        Rkv::from_env(builder, path)
    }
pub fn with_capacity ( path : & Path , max_dbs : c_uint ) -> Result < Rkv , StoreError > { if ! path . is_dir ( ) { return Err ( StoreError :: DirectoryDoesNotExistError ( path . into ( ) ) ) ; } let mut builder = Environment :: new ( ) ; builder . set_max_dbs ( max_dbs ) ; // Future: set flags, maximum size, etc. here if necessary. Rkv :: from_env ( builder , path ) }
Return a new Rkv environment that supports the specified number of open databases.
Return a new Rkv environment that supports the specified number of open databases .
path
&Path
max_dbs
c_uint