[#CDBBatch]
= CDBBatch
:mrdocs:

Batch of changes queued to be written to a CDBWrapper

== Synopsis

Declared in `&lt;dbwrapper&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class CDBBatch;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:CDBBatch/2constructor.adoc[`CDBBatch`]         [.small]#[constructor]#
| Constructs a batch bound to the wrapper it will be submitted to&period;
| xref:CDBBatch/2destructor.adoc[`&#126;CDBBatch`] [.small]#[destructor]#
| Destroys the batch and releases its resources&period;
| xref:CDBBatch/ApproximateSize.adoc[`ApproximateSize`] 
| Returns an estimate of the batch&apos;s serialized size in bytes&period;
| xref:CDBBatch/Clear.adoc[`Clear`] 
| Removes all queued writes and erases from the batch&period;
| xref:CDBBatch/Erase.adoc[`Erase`] 
| Queues an erase of the given key into the batch&period;
| xref:CDBBatch/Write.adoc[`Write`] 
| Queues a write of the given key and value into the batch&period;
|===


== Friends

[cols="1,4"]
|===
| Name| Description
| `xref:CDBWrapper.adoc[CDBWrapper]`
| Wraps a LevelDB database, providing typed, serialized key&hyphen;value access&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
