simplify database backup interface related
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
4f8fec7e5a
commit
3c5bbd4f05
3 changed files with 69 additions and 52 deletions
|
@ -72,10 +72,4 @@ impl Data {
|
|||
pub fn bump_database_version(&self, new_version: u64) {
|
||||
self.global.raw_put(b"version", new_version);
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn backup(&self) -> Result { self.db.db.backup() }
|
||||
|
||||
#[inline]
|
||||
pub fn backup_list(&self) -> Result<String> { self.db.db.backup_list() }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue