summaryrefslogblamecommitdiff
path: root/src/repo/constants.rs
blob: e168a77eea61da7fc999a3e5f1151d280d6b3e0f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                   
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!")
});