LMInstantiator // Set SQLite journal mode == OFF.
This commit is contained in:
parent
3cd327eb15
commit
86bab5c7a8
|
@ -54,7 +54,7 @@ public extension vChewingLM {
|
||||||
if dropPreviousConnection { disconnectSQLDB() }
|
if dropPreviousConnection { disconnectSQLDB() }
|
||||||
vCLog("Establishing SQLite connection to: \(dbPath)")
|
vCLog("Establishing SQLite connection to: \(dbPath)")
|
||||||
guard sqlite3_open(dbPath, &Self.ptrSQL) == SQLITE_OK else { return false }
|
guard sqlite3_open(dbPath, &Self.ptrSQL) == SQLITE_OK else { return false }
|
||||||
guard "PRAGMA journal_mode = MEMORY;".runAsSQLExec(dbPointer: &ptrSQL) else { return false }
|
guard "PRAGMA journal_mode = OFF;".runAsSQLExec(dbPointer: &ptrSQL) else { return false }
|
||||||
isSQLDBConnected = true
|
isSQLDBConnected = true
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue