Struct emerald_rocksdb::Snapshot [] [src]

pub struct Snapshot<'a> { /* fields omitted */ }

A consistent view of the database at the point of creation.

use emerald_rocksdb::{DB, IteratorMode};

let db = DB::open_default("path/for/rocksdb/storage3").unwrap();
let snapshot = db.snapshot(); // Creates a longer-term snapshot of the DB, but closed when goes out of scope
let mut iter = snapshot.iterator(IteratorMode::Start); // Make as many iterators as you'd like from one snapshot

Methods

impl<'a> Snapshot<'a>
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl<'a> Drop for Snapshot<'a>
[src]

[src]

Executes the destructor for this type. Read more