Struct leveldb_rs::DBSnapshot
[−]
[src]
pub struct DBSnapshot { /* fields omitted */ }
An immutable snapshot of the database at a point in time.
Methods
impl DBSnapshot
[src]
fn get(&self, key: &[u8]) -> LevelDBResult<Option<Vec<u8>>>
As DB.get
, except operating on the state of this snapshot.
fn get_opts(
&self,
key: &[u8],
opts: DBReadOptions
) -> LevelDBResult<Option<Vec<u8>>>
&self,
key: &[u8],
opts: DBReadOptions
) -> LevelDBResult<Option<Vec<u8>>>
As DB.get_opts
, except operating on the state of this snapshot.
fn iter(&self) -> LevelDBResult<DBIterator>
As DB.iter
, except operating on the state of this snapshot.