chore: add flush trait fn

This commit is contained in:
rymnc 2023-07-26 10:43:30 +05:30
parent 4521c44065
commit 5635f93446
No known key found for this signature in database
GPG Key ID: AAA088D5C68ECD34
1 changed files with 3 additions and 0 deletions

View File

@ -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<()>;
}