diff --git a/src/database.rs b/src/database.rs index 55f7989..7ede654 100644 --- a/src/database.rs +++ b/src/database.rs @@ -28,4 +28,7 @@ pub trait Database { /// Closes the db connection fn close(&mut self) -> PmtreeResult<()>; + + /// Flushes writes to the db + fn flush(&mut self) -> PmtreeResult<()>; }