diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-25 19:55:15 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-25 19:55:15 -0400 |
| commit | 253e67c8b3a72b3a4757fdbc5845297628db0a4a (patch) | |
| tree | adf53b66087aa30dfbf8bf391a1dadb044c3bf4d /static/netbsd/man3/sqlite3_txn_state.3 | |
| parent | a9157ce950dfe2fc30795d43b9d79b9d1bffc48b (diff) | |
docs: Added All NetBSD Manuals
Diffstat (limited to 'static/netbsd/man3/sqlite3_txn_state.3')
| -rw-r--r-- | static/netbsd/man3/sqlite3_txn_state.3 | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/static/netbsd/man3/sqlite3_txn_state.3 b/static/netbsd/man3/sqlite3_txn_state.3 new file mode 100644 index 00000000..850eb55c --- /dev/null +++ b/static/netbsd/man3/sqlite3_txn_state.3 @@ -0,0 +1,38 @@ +.Dd January 24, 2024 +.Dt SQLITE3_TXN_STATE 3 +.Os +.Sh NAME +.Nm sqlite3_txn_state +.Nd determine the transaction state of a database +.Sh SYNOPSIS +.In sqlite3.h +.Ft int +.Fo sqlite3_txn_state +.Fa "sqlite3*" +.Fa "const char *zSchema" +.Fc +.Sh DESCRIPTION +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): +.Bl -enum +.It +SQLITE_TXN_NONE +.It +SQLITE_TXN_READ +.It +SQLITE_TXN_WRITE +.El +.Pp +If the S argument to sqlite3_txn_state(D,S) is not the name of a valid +schema, then -1 is returned. +.Sh IMPLEMENTATION NOTES +These declarations were extracted from the +interface documentation at line 6655. +.Bd -literal +SQLITE_API int sqlite3_txn_state(sqlite3*,const char *zSchema); +.Ed +.Sh SEE ALSO +.Xr SQLITE_TXN_NONE 3 |
