Add flush method to Database trait

This commit is contained in:
Riccardo Casatta
2021-07-27 11:38:11 +02:00
parent 5cdc5fb58a
commit e52550cfec
4 changed files with 15 additions and 0 deletions

View File

@@ -233,6 +233,10 @@ impl Database for AnyDatabase {
fn increment_last_index(&mut self, keychain: KeychainKind) -> Result<u32, Error> {
impl_inner_method!(AnyDatabase, self, increment_last_index, keychain)
}
fn flush(&mut self) -> Result<(), Error> {
impl_inner_method!(AnyDatabase, self, flush)
}
}
impl BatchOperations for AnyBatch {