Function Database.setCommitHook

Registers a delegate of type CommitHookDelegate as the database's commit hook. Any previously set hook is released.

void setCommitHook (
  int delegate() commitHook
);

Parameters

NameDescription
commitHook A delegate that should return a non-zero value if the operation must be rolled back, or 0 if it can commit. Pass null to disable the callback.

See Also

http://www.sqlite.org/c3ref/commit_hook.html.