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_busy_timeout.3 | |
| parent | a9157ce950dfe2fc30795d43b9d79b9d1bffc48b (diff) | |
docs: Added All NetBSD Manuals
Diffstat (limited to 'static/netbsd/man3/sqlite3_busy_timeout.3')
| -rw-r--r-- | static/netbsd/man3/sqlite3_busy_timeout.3 | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/static/netbsd/man3/sqlite3_busy_timeout.3 b/static/netbsd/man3/sqlite3_busy_timeout.3 new file mode 100644 index 00000000..8db08339 --- /dev/null +++ b/static/netbsd/man3/sqlite3_busy_timeout.3 @@ -0,0 +1,43 @@ +.Dd January 24, 2024 +.Dt SQLITE3_BUSY_TIMEOUT 3 +.Os +.Sh NAME +.Nm sqlite3_busy_timeout +.Nd set a busy timeout +.Sh SYNOPSIS +.In sqlite3.h +.Ft int +.Fo sqlite3_busy_timeout +.Fa "sqlite3*" +.Fa "int ms" +.Fc +.Sh DESCRIPTION +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 +.Fn sqlite3_step +to return SQLITE_BUSY. +.Pp +Calling this routine with an argument less than or equal to zero turns +off all busy handlers. +.Pp +There can only be a single busy handler for a particular database connection +at any given moment. +If another busy handler was defined (using +.Fn sqlite3_busy_handler ) +prior to calling this routine, that other busy handler is cleared. +.Pp +.Sh IMPLEMENTATION NOTES +These declarations were extracted from the +interface documentation at line 2842. +.Bd -literal +SQLITE_API int sqlite3_busy_timeout(sqlite3*, int ms); +.Ed +.Sh SEE ALSO +.Xr sqlite3 3 , +.Xr sqlite3_busy_handler 3 , +.Xr sqlite3_step 3 , +.Xr SQLITE_OK 3 |
