onCommit
onCommit(
callback):void
Defined in: .work/repos/olmdb/src/olmdb.ts:261
Registers a callback to be executed when the current transaction commits successfully. The callback will be executed outside of transaction context.
Parameters
Section titled “Parameters”callback
Section titled “callback”(commitSeq) => void
Function to execute when transaction commits. It receives the commit sequence, which is an always-increasing number that provides a global ordering of commits, as an argument.
Returns
Section titled “Returns”void
Throws
Section titled “Throws”If called outside of a transaction context