Skip to content

Commit

Permalink
wal mode
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Nov 9, 2023
1 parent b109825 commit a7cbd0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/pds/src/migrate-script/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const LOCATION = 'migrate.db'

export const getDb = (): MigrateDb => {
const sqliteDb = new SqliteDB(LOCATION)
sqliteDb.pragma('journal_mode = WAL')
sqliteDb.pragma('busy_timeout = 5000')
return new Kysely<Schema>({
dialect: new SqliteDialect({
Expand Down

0 comments on commit a7cbd0a

Please sign in to comment.