[#CDBWrapper-WriteBatch]
= xref:CDBWrapper.adoc[CDBWrapper]::WriteBatch
:relfileprefix: ../
:mrdocs:

Atomically applies all writes and erases queued in a batch&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
WriteBatch(
    xref:CDBBatch.adoc[CDBBatch]& batch,
    bool fSync = false);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *batch*
| The batch of changes to apply&period;
| *fSync*
| If true, flush the changes to disk before returning&period;
|===


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