Hotenka // Set SQLite journal mode == OFF.
This commit is contained in:
parent
86bab5c7a8
commit
53effaae0a
|
@ -80,6 +80,7 @@ public class HotenkaChineseConverter {
|
|||
ptrSQL = nil
|
||||
return
|
||||
}
|
||||
sqlite3_exec(ptrSQL, "PRAGMA journal_mode = OFF;", nil, nil, nil)
|
||||
}
|
||||
|
||||
public init(plistDir: String) {
|
||||
|
|
|
@ -51,6 +51,10 @@ extension HotenkaTests {
|
|||
sqlite3_exec(ptrSQL, "PRAGMA synchronous = OFF;", nil, nil, nil) == SQLITE_OK,
|
||||
"HOTENKA: SQLite synchronous OFF failed."
|
||||
)
|
||||
XCTAssertTrue(
|
||||
sqlite3_exec(ptrSQL, "PRAGMA journal_mode = OFF;", nil, nil, nil) == SQLITE_OK,
|
||||
"HOTENKA: SQLite journal_mode OFF failed."
|
||||
)
|
||||
|
||||
let sqlMakeTableHotenka = """
|
||||
DROP TABLE IF EXISTS DATA_HOTENKA;
|
||||
|
|
Loading…
Reference in New Issue