Documentación offline SQLite 3.53.4
por @raupulus

Determine the transaction state of a database

3.53.4 Ver versión oficial en línea Licencia BlessingDescargado el 2026-09-15 Bundle .md (21.8 MB) ↓

\ int sqlite3_txn_state(sqlite3*,const char *zSchema);\

The sqlite3_txn_state(D,S) interface returns the current transaction state of schema S in database connection D. If S is NULL, then the highest transaction state of any schema on database connection D is returned. Transaction states are (in order of lowest to highest):

  1. SQLITE_TXN_NONE
  2. SQLITE_TXN_READ
  3. SQLITE_TXN_WRITE

If the S argument to sqlite3_txn_state(D,S) is not the name of a valid schema, then -1 is returned.

See also lists of Objects, Constants, and Functions.