php8.5
Home/ Manual/ sqlite3 / sqlite3/ SQLite3::busyTimeout

SQLite3::busyTimeout

PHP function Edit on GitHub ✎

(PHP 5 >= 5.3.3, PHP 7, PHP 8)

Sets the busy connection handler

Description

SQLite3::busyTimeout(int $milliseconds): bool

Sets a busy handler that will sleep until the database is not locked or the timeout is reached.

Parameters

milliseconds

The milliseconds to sleep. Setting this value to a value less than or equal to zero, will turn off an already set timeout handler.

Return Values

Returns true on success, Falseforfailure.

Source: reference/sqlite3/sqlite3/busyTimeout.xml · from the official PHP manual (php/doc-en)