From 18657a960e125336f704ea058e25c27bd3900dcb Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 5 May 2024 19:28:19 +0200 Subject: Adding upstream version 3.40.1. Signed-off-by: Daniel Baumann --- www/c3ref/busy_timeout.html | 147 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 147 insertions(+) create mode 100644 www/c3ref/busy_timeout.html (limited to 'www/c3ref/busy_timeout.html') diff --git a/www/c3ref/busy_timeout.html b/www/c3ref/busy_timeout.html new file mode 100644 index 0000000..617e753 --- /dev/null +++ b/www/c3ref/busy_timeout.html @@ -0,0 +1,147 @@ + + + + + +Set A Busy Timeout + + + +
+ + + +
+
+Small. Fast. Reliable.
Choose any three. +
+ + +
+
+ + + +
+
+
+ + +
+

SQLite C Interface

+

Set A Busy Timeout

+
+
+int sqlite3_busy_timeout(sqlite3*, int ms);
+
+

+This routine sets a busy handler that sleeps +for a specified amount of time when a table is locked. The handler +will sleep multiple times until at least "ms" milliseconds of sleeping +have accumulated. After at least "ms" milliseconds of sleeping, +the handler returns 0 which causes sqlite3_step() to return +SQLITE_BUSY.

+ +

Calling this routine with an argument less than or equal to zero +turns off all busy handlers.

+ +

There can only be a single busy handler for a particular +database connection at any given moment. If another busy handler +was defined (using sqlite3_busy_handler()) prior to calling +this routine, that other busy handler is cleared.

+ +

See also: PRAGMA busy_timeout +

See also lists of + Objects, + Constants, and + Functions.

+ -- cgit v1.2.3