fix(electron): enable WAL mode for sqlite (#8336)

fix AF-1015
This commit is contained in:
pengx17
2024-09-25 04:06:03 +00:00
parent e6feb17ac7
commit e839947dd5
6 changed files with 36 additions and 3 deletions
@@ -77,6 +77,7 @@ export async function saveDBFileAs(
): Promise<SaveDBFileResult> {
try {
const db = await ensureSQLiteDB('workspace', workspaceId);
await db.checkpoint(); // make sure all changes (WAL) are written to db
const fakedResult = getFakedResult();
const ret =