Skip to content

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.

(commitSeq) => void

Function to execute when transaction is reverted. It receives the dummy (always 0) commit sequence indicating failure as an argument.

void

If called outside of a transaction context