Switch to FULL synchronous of sqlite

This commit is contained in:
Fedor Indutny 2021-06-23 09:16:41 -07:00 committed by GitHub
parent b990204bce
commit 323eb0688b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -337,7 +337,7 @@ function keyDatabase(db: Database, key: string): void {
function switchToWAL(db: Database): void {
// https://sqlite.org/wal.html
db.pragma('journal_mode = WAL');
db.pragma('synchronous = NORMAL');
db.pragma('synchronous = FULL');
}
function getUserVersion(db: Database): number {
return db.pragma('user_version', { simple: true });