We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65b1681 commit 16c074cCopy full SHA for 16c074c
src/types/index.d.ts
@@ -458,6 +458,19 @@ declare interface SQLiteAPI {
458
*/
459
column_type(stmt: number, i: number): number;
460
461
+ /**
462
+ * Register a commit hook
463
+ *
464
+ * @see https://www.sqlite.org/c3ref/commit_hook.html
465
466
+ * @param db database pointer
467
+ * @param callback If a non-zero value is returned, commit is converted into
468
+ * a rollback; disables callback when null
469
+ */
470
+ commit_hook(
471
+ db: number,
472
+ callback: (() => number) | null): void;
473
+
474
/**
475
* Create or redefine SQL functions
476
*
0 commit comments