diff --git a/Sources/Database/DiskSqlite.swift b/Sources/Database/DiskSqlite.swift index 516d75c63..19ffba05e 100644 --- a/Sources/Database/DiskSqlite.swift +++ b/Sources/Database/DiskSqlite.swift @@ -15,11 +15,6 @@ public final class DiskSqlite: Sqlite { guard sqlite3_open_v2(path, &db, SQLITE_OPEN_CREATE|SQLITE_OPEN_READWRITE|SQLITE_OPEN_FULLMUTEX, nil) == SQLITE_OK else { throw SQLiteError.openDatabase(path: path) } - var error: UnsafeMutablePointer? - guard sqlite3_exec(db, "PRAGMA journal_mode=WAL;", nil, nil, &error) == SQLITE_OK else { - let message = error.map { String(cString: $0) } - throw SQLiteError.exec(error: message) - } } public func query(sql: String) throws -> [Row] { diff --git a/Sources/Database/MemorySqlite.swift b/Sources/Database/MemorySqlite.swift index b0ea8ba3d..640098d04 100644 --- a/Sources/Database/MemorySqlite.swift +++ b/Sources/Database/MemorySqlite.swift @@ -9,11 +9,6 @@ public final class MemorySqlite: Sqlite { guard sqlite3_open_v2(":memory:", &db, SQLITE_OPEN_CREATE|SQLITE_OPEN_READWRITE|SQLITE_OPEN_FULLMUTEX, nil) == SQLITE_OK else { throw SQLiteError.openDatabaseMemory } - var error: UnsafeMutablePointer? - guard sqlite3_exec(db, "PRAGMA journal_mode=WAL;", nil, nil, &error) == SQLITE_OK else { - let message = error.map { String(cString: $0) } - throw SQLiteError.exec(error: message) - } } public func openDatabase() throws {