Skip to content

Commit

Permalink
Drop cache mode, like we did in #30
Browse files Browse the repository at this point in the history
  • Loading branch information
lstoll committed Oct 30, 2022
1 parent f532c83 commit 953e341
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -511,9 +511,9 @@ func (b *baseCommand) Parse(ctx context.Context, logger logger) {
os.Exit(1)
}

connStr := fmt.Sprintf("file:%s?cache=shared&mode=rwc&_journal_mode=WAL&_foreign_keys=on", filepath.Join(b.dbPath, mainDBFile))
connStr := fmt.Sprintf("file:%s?mode=rwc&_journal_mode=WAL&_foreign_keys=on", filepath.Join(b.dbPath, mainDBFile))
if b.disableWal {
connStr = fmt.Sprintf("file:%s?cache=shared&_foreign_keys=on", filepath.Join(b.dbPath, mainDBFile))
connStr = fmt.Sprintf("file:%s?_foreign_keys=on", filepath.Join(b.dbPath, mainDBFile))
}

st, err := newStorage(ctx, logger, connStr)
Expand Down

0 comments on commit 953e341

Please sign in to comment.