(PHP 5 >= 5.3.3)
SQLite3::busyTimeout — Sets the busy connection handler
$msecs
)Sets a busy handler that will sleep until the database is not locked or the timeout is reached.
msecs
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
on failure.
strugglecrb (2012-07-19 01:09:48)
Example usage:
<?php
if($this->busyTimeout(2000))
{
$this->exec($strSql);
}
//Release
$this->busyTimeout(0);
?>