Struct rkv::Rkv
[−]
[src]
pub struct Rkv { /* fields omitted */ }
Wrapper around an lmdb::Environment
.
Methods
impl Rkv
[src]
Static methods.
pub fn environment_builder() -> EnvironmentBuilder
[src]
pub fn from_env(env: EnvironmentBuilder, path: &Path) -> Result<Rkv, StoreError>
[src]
Return a new Rkv environment from the provided builder.
pub fn new(path: &Path) -> Result<Rkv, StoreError>
[src]
Return a new Rkv environment that supports up to DEFAULT_MAX_DBS
open databases.
pub fn with_capacity(path: &Path, max_dbs: c_uint) -> Result<Rkv, StoreError>
[src]
Return a new Rkv environment that supports the specified number of open databases.
impl Rkv
[src]
Store creation methods.
pub fn create_or_open_default(&self) -> Result<Store<&str>, StoreError>
[src]
pub fn create_or_open<'s, T, K>(&self, name: T) -> Result<Store<K>, StoreError> where
T: Into<Option<&'s str>>,
K: AsRef<[u8]>,
[src]
T: Into<Option<&'s str>>,
K: AsRef<[u8]>,
pub fn create_or_open_integer<'s, T, K>(
&self,
name: T
) -> Result<IntegerStore<K>, StoreError> where
T: Into<Option<&'s str>>,
K: PrimitiveInt,
[src]
&self,
name: T
) -> Result<IntegerStore<K>, StoreError> where
T: Into<Option<&'s str>>,
K: PrimitiveInt,
pub fn create_or_open_with_flags<'s, T, K>(
&self,
name: T,
flags: DatabaseFlags
) -> Result<Store<K>, StoreError> where
T: Into<Option<&'s str>>,
K: AsRef<[u8]>,
[src]
&self,
name: T,
flags: DatabaseFlags
) -> Result<Store<K>, StoreError> where
T: Into<Option<&'s str>>,
K: AsRef<[u8]>,
impl Rkv
[src]
Read and write accessors.