API reference › @evolu/sqlite-wasm › c-api › sqlite3_txn_state

function sqlite3_txn_state(
  deps: SqliteWasmDep,
): (db: SqliteDbPtr, zSchema: 0 | CStringPtr) => number;

Defined in: packages/sqlite-wasm/src/CApi.ts:1223

Returns a schema's transaction state, SQLITE_TXN_NONE, SQLITE_TXN_READ or SQLITE_TXN_WRITE, the highest across all schemas for NULL, or -1 for an unknown schema.

Wasm type i(ii). Signature ["sqlite3_txn_state", "int", "sqlite3*", "string"] from SQLite's table.

See https://sqlite.org/c3ref/txn_state.html.