array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'sqlite3.busytimeout.php', 1 => 'SQLite3::busyTimeout', 2 => 'Sets the busy connection handler', ), 'up' => array ( 0 => 'class.sqlite3.php', 1 => 'SQLite3', ), 'prev' => array ( 0 => 'sqlite3.backup.php', 1 => 'SQLite3::backup', ), 'next' => array ( 0 => 'sqlite3.changes.php', 1 => 'SQLite3::changes', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/sqlite3/sqlite3/busyTimeout.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

SQLite3::busyTimeout

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

SQLite3::busyTimeoutSets the busy connection handler

说明

public SQLite3::busyTimeout(int $milliseconds): bool

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

参数

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.

返回值

Returns true on success, 或者在失败时返回 false.