From a99476935feb2b81b98a1274e4d4f78963dc056a Mon Sep 17 00:00:00 2001 From: Viktor Podzigun Date: Thu, 13 Apr 2023 19:34:00 +0200 Subject: [PATCH] Removed default WAL mode --- SQLiteDatabase.js | 1 - package.json | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/SQLiteDatabase.js b/SQLiteDatabase.js index d415d36..b41326c 100644 --- a/SQLiteDatabase.js +++ b/SQLiteDatabase.js @@ -7,7 +7,6 @@ const READ_ONLY_ERROR = new Error('could not prepare statement (23 not authorize function SQLiteDatabase(name) { const db = new Database(name); - db.pragma('journal_mode = WAL'); db._lastInsertRowIdQuery = db.prepare("SELECT last_insert_rowid() AS id;"); db._changesQuery = db.prepare("SELECT changes() AS changes;"); this._db = db; diff --git a/package.json b/package.json index e40efd5..2711b9f 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,6 @@ }, "dependencies": { "@expo/websql": "^1.0.1", - "@farjs/better-sqlite3-wrapper": "^1.0.0" + "@farjs/better-sqlite3-wrapper": "^1.0.1" } }