From a65dabfaa02ecd73f002f4eae01d63b5607457c4 Mon Sep 17 00:00:00 2001 From: Soner Sayakci Date: Wed, 9 Oct 2024 14:53:34 +0200 Subject: [PATCH] feat: enable WAL for sqlite with bun --- src/integration/bun-sqlite.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/integration/bun-sqlite.ts b/src/integration/bun-sqlite.ts index f083f76..0f0b37f 100644 --- a/src/integration/bun-sqlite.ts +++ b/src/integration/bun-sqlite.ts @@ -8,6 +8,7 @@ export class BunSqliteRepository db: Database; constructor(fileName: string) { this.db = new Database(fileName); + this.db.exec(`PRAGMA journal_mode = WAL;`); this.db.exec(` CREATE TABLE IF NOT EXISTS shop ( id TEXT PRIMARY KEY,