From a77197d85958682c7fa1ebfdd1bf409ade08e45a Mon Sep 17 00:00:00 2001 From: krolebord <53054887+krolebord@users.noreply.github.com> Date: Sat, 24 Jan 2026 10:17:58 +0100 Subject: [PATCH] Add missing sqlite3_get_autocommit types --- src/index.d.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/index.d.ts b/src/index.d.ts index b96b323..bcdb61a 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -5154,6 +5154,20 @@ export type CAPI = { */ sqlite3_context_db_handle: (ctx: WasmPointer) => WasmPointer; + /** + * The sqlite3_get_autocommit() interface returns non-zero or zero if the + * given database connection is or is not in autocommit mode, respectively. + * Autocommit mode is on by default. Autocommit mode is disabled by a BEGIN + * statement. Autocommit mode is re-enabled by a COMMIT or ROLLBACK. + * + * C Signature: + * + * int sqlite3_get_autocommit(sqlite3*); + * + * See https://www.sqlite.org/c3ref/get_autocommit.html + */ + sqlite3_get_autocommit(db: DbPtr): number; + /** * Returns a pointer to the metadata associated by the * `sqlite3_set_auxdata(ctx, n , pAux, xDelete)` function with the `n`th