API reference › @evolu/sqlite-wasm › c-api › sqlite3_get_autocommit
function sqlite3_get_autocommit(
deps: SqliteWasmDep,
): (db: SqliteDbPtr) => number;
Defined in: packages/sqlite-wasm/src/CApi.ts:1239
Returns 0 from BEGIN until the COMMIT or ROLLBACK that ends the transaction, and non-zero otherwise. It is the only way to tell whether SQLite rolled back a transaction automatically after an error such as SQLITE_FULL or SQLITE_BUSY.
Wasm type i(i). Signature ["sqlite3_get_autocommit", "int", "sqlite3*"]
from SQLite's table.