From 881e4bf3c9141b4bebaefaf6385652ed46d9a9fe Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Wed, 7 Apr 2021 18:54:22 -0400 Subject: added some demo login template, functionality, also added basic kv store test and ui demo --- src/repo/constants.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/repo/constants.rs (limited to 'src/repo/constants.rs') diff --git a/src/repo/constants.rs b/src/repo/constants.rs new file mode 100644 index 0000000..e168a77 --- /dev/null +++ b/src/repo/constants.rs @@ -0,0 +1,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 = Lazy::new(|| { + Config::default() + .path("/tmp/twinh") + .open() + .expect("Couldn't open DB!") +}); -- cgit v1.2.3