Skip to content

Commit

Permalink
Keep PRAGMA query for sqlite only
Browse files Browse the repository at this point in the history
  • Loading branch information
llemeurfr committed Mar 22, 2020
1 parent b6f04a8 commit 57bf44a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions frontend/frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,11 @@ func main() {
if err != nil {
panic(err)
}
_, err = db.Exec("PRAGMA journal_mode = WAL")
if err != nil {
panic(err)
if driver == "sqlite3" {
_, err = db.Exec("PRAGMA journal_mode = WAL")
if err != nil {
panic(err)
}
}

repoManager, err := webrepository.Init(config.Config.FrontendServer)
Expand Down

0 comments on commit 57bf44a

Please sign in to comment.