indradb-lib 0.22.0

A graph database library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[test]
fn should_repair() {
    use super::RocksdbDatastore;
    use crate::util::generate_temporary_path;

    let path = generate_temporary_path();

    // // Make sure we just initialize the database
    RocksdbDatastore::new(&path, Some(1), false).unwrap();

    // Now try to repair
    RocksdbDatastore::repair(&path, Some(1)).unwrap();
}