SQLite PRAGMA

PRAGMA busy_timeout

Query or change the setting of the busy timeout.

PRAGMA busy_timeout;
PRAGMA busy_timeout = milliseconds;

On the sample database

What PRAGMA busy_timeout returns on the sample database, in SQLite 3.54.1 as built for the browser by sql.js:

timeout
0

What the SQLite documentation says

Query or change the setting of the busy timeout. This pragma is an alternative to the sqlite3_busy_timeout() C-language interface which is made available as a pragma for use with language bindings that do not provide direct access to sqlite3_busy_timeout().

Each database connection can only have a single busy handler. This PRAGMA sets the busy handler for the process, possibly overwriting any previously set busy handler.

The maximum timeout is 2147483647 milliseconds (about 24.9 days). The result of setting a timeout larger than that value is not defined.

From sqlite.org's pragma documentation for SQLite 3.54.1, in the public domain.

← automatic_index · cache_size →