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
Name | Description |
---|---|
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. |