| SQLITE_LOCK_NONE(3) | Library Functions Manual | SQLITE_LOCK_NONE(3) |
SQLITE_LOCK_NONE,
SQLITE_LOCK_SHARED,
SQLITE_LOCK_RESERVED,
SQLITE_LOCK_PENDING,
SQLITE_LOCK_EXCLUSIVE — file
locking levels
#include
<sqlite3.h>
#define SQLITE_LOCK_NONE
#define SQLITE_LOCK_SHARED
#define SQLITE_LOCK_RESERVED
#define SQLITE_LOCK_PENDING
#define SQLITE_LOCK_EXCLUSIVE
SQLite uses one of these integer values as the second argument to calls it makes to the xLock() and xUnlock() methods of an sqlite3_io_methods object. These values are ordered from lest restrictive to most restrictive.
The argument to xLock() is always SHARED or higher. The argument to xUnlock is either SHARED or NONE.
These declarations were extracted from the interface documentation at line 671.
#define SQLITE_LOCK_NONE 0 /* xUnlock() only */ #define SQLITE_LOCK_SHARED 1 /* xLock() or xUnlock() */ #define SQLITE_LOCK_RESERVED 2 /* xLock() only */ #define SQLITE_LOCK_PENDING 3 /* xLock() only */ #define SQLITE_LOCK_EXCLUSIVE 4 /* xLock() only */
| January 24, 2024 | NetBSD 11.0 |