Switch to FULL synchronous of sqlite
This commit is contained in:
parent
b990204bce
commit
323eb0688b
1 changed files with 1 additions and 1 deletions
|
@ -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 });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue