[rm-sled] Implement some missing functionality in garage_db

This commit is contained in:
Alex Auvolat
2024-03-08 16:02:58 +01:00
parent 05c92204ec
commit 66c23890c1
3 changed files with 19 additions and 2 deletions
+5
View File
@@ -363,6 +363,11 @@ impl<'a> ITx for SqliteTx<'a> {
Ok(old_val)
}
fn clear(&mut self, tree: usize) -> TxOpResult<()> {
let tree = self.get_tree(tree)?;
self.tx.execute(&format!("DELETE FROM {}", tree), [])?;
Ok(())
}
fn iter(&self, _tree: usize) -> TxOpResult<TxValueIter<'_>> {
unimplemented!();