crate::ix!();
pub trait GetDB {
fn getdb(&self) -> &mut BaseIndexDB;
}
pub struct BaseIndexDB {
base: DBWrapper,
}
impl BaseIndexDB {
pub fn new(
path: &Path,
n_cache_size: usize,
memory: Option<bool>,
wipe: Option<bool>,
obfuscate: Option<bool>) -> Self {
let memory: bool = memory.unwrap_or(false);
let wipe: bool = wipe.unwrap_or(false);
let obfuscate: bool = obfuscate.unwrap_or(false);
todo!();
}
pub fn read_best_block(&self, locator: &mut BlockLocator) -> bool {
todo!();
}
pub fn write_best_block(&mut self,
batch: &mut DBBatch,
locator: &BlockLocator) {
todo!();
}
}