notmuch_database_begin_atomic

Begin an atomic database operation.

Any modifications performed between a successful begin and a notmuch_database_end_atomic will be applied to the database atomically. Note that, unlike a typical database transaction, this only ensures atomicity, not durability; neither begin nor end necessarily flush modifications to disk.

Atomic sections may be nested. begin_atomic and end_atomic must always be called in pairs.

Return value:

More...
version(DerelictNotMuch_Static)nothrow
notmuch_database_begin_atomic

Detailed Description

NOTMUCH STATUS SUCCESS

Successfully entered atomic section.

NOTMUCH STATUS XAPIAN EXCEPTION

A Xapian exception occurred; * atomic section not entered.

Meta