Skip to content

Commit

Permalink
feat: enable WAL for sqlite with bun
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Oct 9, 2024
1 parent 23ef950 commit a65dabf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/integration/bun-sqlite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a65dabf

Please sign in to comment.