mod datastore;
mod managers;
pub use self::datastore::{RocksdbDatastore, RocksdbTransaction};
#[cfg(feature = "bench-suite")]
full_bench_impl!({
use super::RocksdbDatastore;
use tempfile::tempdir;
let path = tempdir().unwrap().into_path();
RocksdbDatastore::new(path, Some(1)).unwrap()
});
#[cfg(feature = "test-suite")]
full_test_impl!({
use super::RocksdbDatastore;
use tempfile::tempdir;
let path = tempdir().unwrap().into_path();
RocksdbDatastore::new(path, Some(1)).unwrap()
});
#[cfg(feature = "test-suite")]
#[test]
fn should_repair() {
use super::RocksdbDatastore;
use tempfile::tempdir;
let dir = tempdir().unwrap();
RocksdbDatastore::new(dir.path(), Some(1)).unwrap();
RocksdbDatastore::repair(dir.path(), Some(1)).unwrap();
}