Skip to content

Commit b0c1bf4

Browse files
authored
Add missing sqlite3_get_autocommit types (#143)
1 parent 11a404b commit b0c1bf4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/index.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5154,6 +5154,20 @@ export type CAPI = {
51545154
*/
51555155
sqlite3_context_db_handle: (ctx: WasmPointer) => WasmPointer;
51565156

5157+
/**
5158+
* The sqlite3_get_autocommit() interface returns non-zero or zero if the
5159+
* given database connection is or is not in autocommit mode, respectively.
5160+
* Autocommit mode is on by default. Autocommit mode is disabled by a BEGIN
5161+
* statement. Autocommit mode is re-enabled by a COMMIT or ROLLBACK.
5162+
*
5163+
* C Signature:
5164+
*
5165+
* int sqlite3_get_autocommit(sqlite3*);
5166+
*
5167+
* See https://www.sqlite.org/c3ref/get_autocommit.html
5168+
*/
5169+
sqlite3_get_autocommit(db: DbPtr): number;
5170+
51575171
/**
51585172
* Returns a pointer to the metadata associated by the
51595173
* `sqlite3_set_auxdata(ctx, n , pAux, xDelete)` function with the `n`th

0 commit comments

Comments
 (0)