improvement: allow batch inserts
This commit is contained in:
parent
0eeba86b32
commit
49ade0cfbd
3 changed files with 27 additions and 1 deletions
|
@ -25,6 +25,7 @@ pub trait Tree: Send + Sync {
|
|||
fn get(&self, key: &[u8]) -> Result<Option<Vec<u8>>>;
|
||||
|
||||
fn insert(&self, key: &[u8], value: &[u8]) -> Result<()>;
|
||||
fn insert_batch<'a>(&self, iter: &mut dyn Iterator<Item = (Vec<u8>, Vec<u8>)>) -> Result<()>;
|
||||
|
||||
fn remove(&self, key: &[u8]) -> Result<()>;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue