Struct leveldb::database::snapshots::Snapshot
[-] [+]
[src]
pub struct Snapshot<'a, K: Key + 'a> { // some 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, K: Key> Snapshot<'a, K>
fn get(&'a self, options: ReadOptions<'a, K>, key: K) -> Result<Option<Vec<u8>>, Error>
fetches a key from the database
Inserts this snapshot into ReadOptions before reading