use rust_rocksdb::DB; fn main() { let _snapshot = { let db = DB::open_default("foo").unwrap(); db.snapshot() }; }