CDBBatch

Batch of changes queued to be written to a CDBWrapper

Synopsis

Declared in <dbwrapper.h>

class CDBBatch;

Member Functions

NameDescription
CDBBatch [constructor]Constructs a batch bound to the wrapper it will be submitted to.
~CDBBatch [destructor]Destroys the batch and releases its resources.
ApproximateSize Returns an estimate of the batch's serialized size in bytes.
Clear Removes all queued writes and erases from the batch.
Erase Queues an erase of the given key into the batch.
Write Queues a write of the given key and value into the batch.

Friends

NameDescription
CDBWrapperWraps a LevelDB database, providing typed, serialized key-value access.