Skip to content

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.

(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.

void

If called outside of a transaction context