Struct leveldb::database::batch::Writebatch
[-] [+]
[src]
pub struct Writebatch<K: Key> { // some fields omitted }
Methods
impl<K: Key> Writebatch<K>
fn new() -> Writebatch<K>
Create a new writebatch
fn clear(&mut self)
Clear the writebatch
fn put(&mut self, key: K, value: &[u8])
Batch a put operation
fn delete(&mut self, key: K)
Batch a delete operation
fn iterate<T: WritebatchIterator<K=K>>(&mut self, iterator: Box<T>) -> Box<T>
Iterate over the writebatch, returning the resulting iterator