Enable fullfsync mode in the database
This commit is contained in:
parent
4b8a37f519
commit
a2eac80034
1 changed files with 1 additions and 0 deletions
|
@ -394,6 +394,7 @@ function switchToWAL(db: Database): void {
|
||||||
// https://sqlite.org/wal.html
|
// https://sqlite.org/wal.html
|
||||||
db.pragma('journal_mode = WAL');
|
db.pragma('journal_mode = WAL');
|
||||||
db.pragma('synchronous = FULL');
|
db.pragma('synchronous = FULL');
|
||||||
|
db.pragma('fullfsync = ON');
|
||||||
}
|
}
|
||||||
|
|
||||||
function migrateSchemaVersion(db: Database): void {
|
function migrateSchemaVersion(db: Database): void {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue