Struct exonum_leveldb::database::snapshots::Snapshot
[−]
[src]
pub struct Snapshot<'a> { /* fields omitted */ }
A database snapshot
Represents a database at a certain point in time, and allows for all read operations (get and iteration).
Methods
impl<'a> Snapshot<'a>
[src]
fn get<K: AsRef<[u8]>>(
&'a self,
options: ReadOptions<'a>,
key: K
) -> Result<Option<Vec<u8>>, Error>
&'a self,
options: ReadOptions<'a>,
key: K
) -> Result<Option<Vec<u8>>, Error>
fetches a key from the database
Inserts this snapshot into ReadOptions before reading
fn raw_ptr(&self) -> *mut leveldb_snapshot_t
Trait Implementations
impl<'a> Iterable<'a> for Snapshot<'a>
[src]
fn iter(&'a self, options: ReadOptions<'a>) -> Iterator
Return an Iterator iterating over (Key,Value) pairs