blob: e168a77eea61da7fc999a3e5f1151d280d6b3e0f (
plain) (
tree)
|
|
use once_cell::sync::Lazy;
use sled::{Config, Db};
pub const PARTS_TREE: &str = "parts";
pub const CARS_TREE: &str = "cars";
pub static REPO_INSTANCE: Lazy<Db> = Lazy::new(|| {
Config::default()
.path("/tmp/twinh")
.open()
.expect("Couldn't open DB!")
});
|