owncloud:
host: /home/owncloud/data/owncloud.db
+ #host: /dev/shm/owncloud.db
+ #host: /opt/owncloud/data/owncloud.db
type: sqlite
default_table: oc_users
function disconnect() {
if (empty($this->conn)) return null;
+ #$this->conn->exec('COMMIT');
return $this->conn->close();
}
foreach ($this->sql_exec() as $s) {
$this->conn->exec($s);
}
+ #$this->conn->exec('BEGIN');
# Create functions
if ($this->type('sqliteCreateFunction')) {
exit;
}
$DB_TYPES['sqlite'] = array (
-'exec' => 'PRAGMA encoding = "'.strtoupper(Db::$encoding).'"',
+'exec' => [
+ 'PRAGMA encoding = "'.strtoupper(Db::$encoding).'"',
+ #'PRAGMA temp_store = 2',
+ #'PRAGMA read_uncommitted = false',
+ #'PRAGMA journal_mode = WAL',
+ #'PRAGMA journal_mode = MEMORY',
+ #'PRAGMA journal_mode = OFF',
+],
'use_path' => true,
'extra_where' => 'denorm',