refactor:moved key watch wake logic to specific module

This commit is contained in:
Tglman 2021-12-23 22:16:40 +00:00
parent 9b57c89df6
commit a889e884e6
5 changed files with 70 additions and 83 deletions

View file

@ -12,6 +12,9 @@ pub mod sqlite;
#[cfg(feature = "heed")]
pub mod heed;
#[cfg(any(feature = "sqlite", feature = "heed"))]
pub mod watchers;
pub trait DatabaseEngine: Sized {
fn open(config: &Config) -> Result<Arc<Self>>;
fn open_tree(self: &Arc<Self>, name: &'static str) -> Result<Arc<dyn Tree>>;