pub mod builder;
pub mod byte_as_slice;
pub mod db;
pub mod raw_tree;
pub mod sled_tree;
pub mod tree;
pub mod updater;

use parking_lot::{Mutex, ReentrantMutex};
use std::collections::HashMap;
use std::sync::Arc;

pub type ByteValue = sled::InlineArray;
pub type KeyValue = (ByteValue, ByteValue);
pub type Db = Arc<ReentrantMutex<sled::Db>>;
pub type Tree = Box<sled::Tree>;
pub type Iter = sled::Iter<1024>;
pub type TreeRegistry = Arc<Mutex<HashMap<String, raw_tree::RawTree>>>;
