mirror of
https://github.com/silverstripe/silverstripe-sqlite3
synced 2024-10-22 17:05:37 +02:00
ENHANCEMENT: set connection timeout to 60 sec
This commit is contained in:
parent
cc0592f78f
commit
6fe1129f42
@ -89,6 +89,7 @@ class SQLite3Database extends SS_Database {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->dbConn = new SQLite3($file, SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE, $parameters['key']);
|
$this->dbConn = new SQLite3($file, SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE, $parameters['key']);
|
||||||
|
if(method_exists('SQLite3', 'busyTimeout')) $this->dbConn->busyTimeout(60000);
|
||||||
|
|
||||||
//By virtue of getting here, the connection is active:
|
//By virtue of getting here, the connection is active:
|
||||||
$this->active=true;
|
$this->active=true;
|
||||||
|
Loading…
Reference in New Issue
Block a user