[−][src]Trait rkv::backend::BackendEnvironment
Associated Types
type Error: BackendError
type Database: BackendDatabase
type Flags: BackendDatabaseFlags
type Stat: BackendStat
type Info: BackendInfo
type RoTransaction: BackendRoCursorTransaction<'e, Database = Self::Database>
type RwTransaction: BackendRwCursorTransaction<'e, Database = Self::Database>
Required methods
fn get_dbs(&self) -> Result<Vec<Option<String>>, Self::Error>
fn open_db(&self, name: Option<&str>) -> Result<Self::Database, Self::Error>
fn create_db(
&self,
name: Option<&str>,
flags: Self::Flags
) -> Result<Self::Database, Self::Error>
&self,
name: Option<&str>,
flags: Self::Flags
) -> Result<Self::Database, Self::Error>
fn begin_ro_txn(&'e self) -> Result<Self::RoTransaction, Self::Error>
fn begin_rw_txn(&'e self) -> Result<Self::RwTransaction, Self::Error>
fn sync(&self, force: bool) -> Result<(), Self::Error>
fn stat(&self) -> Result<Self::Stat, Self::Error>
fn info(&self) -> Result<Self::Info, Self::Error>
fn freelist(&self) -> Result<usize, Self::Error>
fn load_ratio(&self) -> Result<Option<f32>, Self::Error>
fn set_map_size(&self, size: usize) -> Result<(), Self::Error>
fn get_files_on_disk(&self) -> Vec<PathBuf>
Implementors
impl<'e> BackendEnvironment<'e> for rkv::backend::LmdbEnvironment
[src]
type Database = DatabaseImpl
type Error = ErrorImpl
type Flags = DatabaseFlagsImpl
type Info = InfoImpl
type RoTransaction = RoTransactionImpl<'e>
type RwTransaction = RwTransactionImpl<'e>
type Stat = StatImpl
fn get_dbs(&self) -> Result<Vec<Option<String>>, Self::Error>
[src]
fn open_db(&self, name: Option<&str>) -> Result<Self::Database, Self::Error>
[src]
fn create_db(
&self,
name: Option<&str>,
flags: Self::Flags
) -> Result<Self::Database, Self::Error>
[src]
&self,
name: Option<&str>,
flags: Self::Flags
) -> Result<Self::Database, Self::Error>
fn begin_ro_txn(&'e self) -> Result<Self::RoTransaction, Self::Error>
[src]
fn begin_rw_txn(&'e self) -> Result<Self::RwTransaction, Self::Error>
[src]
fn sync(&self, force: bool) -> Result<(), Self::Error>
[src]
fn stat(&self) -> Result<Self::Stat, Self::Error>
[src]
fn info(&self) -> Result<Self::Info, Self::Error>
[src]
fn freelist(&self) -> Result<usize, Self::Error>
[src]
fn load_ratio(&self) -> Result<Option<f32>, Self::Error>
[src]
fn set_map_size(&self, size: usize) -> Result<(), Self::Error>
[src]
fn get_files_on_disk(&self) -> Vec<PathBuf>
[src]
impl<'e> BackendEnvironment<'e> for rkv::backend::SafeModeEnvironment
[src]
type Database = DatabaseImpl
type Error = ErrorImpl
type Flags = DatabaseFlagsImpl
type Info = InfoImpl
type RoTransaction = RoTransactionImpl<'e>
type RwTransaction = RwTransactionImpl<'e>
type Stat = StatImpl
fn get_dbs(&self) -> Result<Vec<Option<String>>, Self::Error>
[src]
fn open_db(&self, name: Option<&str>) -> Result<Self::Database, Self::Error>
[src]
fn create_db(
&self,
name: Option<&str>,
flags: Self::Flags
) -> Result<Self::Database, Self::Error>
[src]
&self,
name: Option<&str>,
flags: Self::Flags
) -> Result<Self::Database, Self::Error>