onRevert
onRevert(
callback):void
Defined in: .work/repos/olmdb/src/olmdb.ts:249
Registers a callback to be executed when the current transaction is reverted (aborted due to error). The callback will be executed outside of transaction context.
Parameters
Section titled “Parameters”callback
Section titled “callback”(commitSeq) => void
Function to execute when transaction is reverted. It receives the dummy (always 0) commit sequence indicating failure as an argument.
Returns
Section titled “Returns”void
Throws
Section titled “Throws”If called outside of a transaction context