sqlite3_busy_timeoutΒΆ
sqlite3_busy_timeout sets the time limit to open a locked SQLite database.
-
bool = sqlite3_busy_timeout(db, nMilliSeconds)
Return Value
bool.
Parameters
-
db
db is a handle returned by sqlite3_open.
-
nMilliSeconds
nMilliSeconds is a time in milliseconds.
Comment
When the SQLite database is accessed for reading it is locked for writing until the reading access is finished. Another process cannot access the database while it is locked. The timeout time sets a limit while this process tries to access the locked database. If the database is unlocked within the timeout time it can be accessed, otherwise an access fails.
History
Version | Description |
---|---|
5.5.0 | New. |
See also
id-1692406