File: snapshot_outlive_transaction_db.rs

package info (click to toggle)
rust-rocksdb 0.23.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,128 kB
  • sloc: makefile: 2
file content (8 lines) | stat: -rw-r--r-- 191 bytes parent folder | download
1
2
3
4
5
6
7
8
use rocksdb::{TransactionDB, SingleThreaded};

fn main() {
    let _snapshot = {
        let db = TransactionDB::<SingleThreaded>::open_default("foo").unwrap();
        db.snapshot()
    };
}