Struct rkv::Store [−][src]
Wrapper around an lmdb::Database
.
Methods
impl<K> Store<K> where
K: AsRef<[u8]>,
[src]
impl<K> Store<K> where
K: AsRef<[u8]>,
pub fn new(db: Database) -> Store<K>
[src]
pub fn new(db: Database) -> Store<K>
pub fn read<'env>(&self, env: &'env Rkv) -> Result<Reader<'env, K>, StoreError>
[src]
pub fn read<'env>(&self, env: &'env Rkv) -> Result<Reader<'env, K>, StoreError>
pub fn write<'env>(&self, env: &'env Rkv) -> Result<Writer<'env, K>, Error>
[src]
pub fn write<'env>(&self, env: &'env Rkv) -> Result<Writer<'env, K>, Error>
Note: there may be only one write transaction active at any given time, so this will block if any other writers currently exist for this store.
pub fn get<'env, 'tx>(
&self,
tx: &'tx RoTransaction<'env>,
k: K
) -> Result<Option<Value<'tx>>, StoreError>
[src]
pub fn get<'env, 'tx>(
&self,
tx: &'tx RoTransaction<'env>,
k: K
) -> Result<Option<Value<'tx>>, StoreError>