Struct leveldb_rs::DBWriteBatch [] [src]

pub struct DBWriteBatch { /* fields omitted */ }

A write batch holds a collection of updates to apply atomically to a database. Updates are applied in the order in which they are added to the write batch.

Methods

impl DBWriteBatch
[src]

Create a new, empty write batch. Returns None if the underlying library call returns a null pointer.

Set the database entry for "key" to "value". See put() on DB for more information.

Clear all updates buffered in this write batch.

If the database contains the given key, erase it. Otherwise, do nothing.

Iterate over the contents of the write batch by calling callbacks for each operation in the batch.

Trait Implementations

impl Drop for DBWriteBatch
[src]

A method called when the value goes out of scope. Read more