Skip to content

Commit

Permalink
Merge pull request #56 from attilasol/pruning-bugfix
Browse files Browse the repository at this point in the history
Set journal mode to WAL in SetupDB() DSN string
  • Loading branch information
skx authored Feb 17, 2019
2 parents 0e60387 + 80b6760 commit 66e79b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func SetupDB(path string) error {
//
// Return if the database already exists.
//
db, err = sql.Open("sqlite3", path)
db, err = sql.Open("sqlite3", "file:"+path+"?_journal_mode=WAL")
if err != nil {
return err
}
Expand Down

0 comments on commit 66e79b7

Please sign in to comment.