Skip to content

Commit

Permalink
Removed default WAL mode
Browse files Browse the repository at this point in the history
  • Loading branch information
viktor-podzigun committed Apr 13, 2023
1 parent dfbe3a7 commit a994769
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion SQLiteDatabase.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
},
"dependencies": {
"@expo/websql": "^1.0.1",
"@farjs/better-sqlite3-wrapper": "^1.0.0"
"@farjs/better-sqlite3-wrapper": "^1.0.1"
}
}

0 comments on commit a994769

Please sign in to comment.