SQLITE_TXN_NONE(3) Library Functions Manual SQLITE_TXN_NONE(3)

SQLITE_TXN_NONE, SQLITE_TXN_READ, SQLITE_TXN_WRITEallowed return values from sqlite3_txn_state()

#include <sqlite3.h>

#define SQLITE_TXN_NONE
#define SQLITE_TXN_READ
#define SQLITE_TXN_WRITE

These constants define the current transaction state of a database file. The sqlite3_txn_state(D,S) interface returns one of these constants in order to describe the transaction state of schema S in database connection D.

SQLITE_TXN_NONE
The SQLITE_TXN_NONE state means that no transaction is currently pending.
SQLITE_TXN_READ
The SQLITE_TXN_READ state means that the database is currently in a read transaction. Content has been read from the database file but nothing in the database file has changed. The transaction state will advanced to SQLITE_TXN_WRITE if any changes occur and there are no other conflicting concurrent write transactions. The transaction state will revert to SQLITE_TXN_NONE following a ROLLBACK or COMMIT.
SQLITE_TXN_WRITE
The SQLITE_TXN_WRITE state means that the database is currently in a write transaction. Content has been written to the database file but has not yet committed. The transaction state will change to to SQLITE_TXN_NONE at the next ROLLBACK or COMMIT.

These declarations were extracted from the interface documentation at line 6673.

#define SQLITE_TXN_NONE  0
#define SQLITE_TXN_READ  1
#define SQLITE_TXN_WRITE 2

sqlite3(3)

January 24, 2024 NetBSD 11.0