refactor:moved key watch wake logic to specific module
This commit is contained in:
parent
9b57c89df6
commit
a889e884e6
5 changed files with 70 additions and 83 deletions
|
@ -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>>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue