Skip to content

Commit

Permalink
bump sqlite connection defaults to timeout=15s and sync=NORMAL
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Aug 7, 2024
1 parent 889fc3d commit 0d29ddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func connectAndMigrate(opts *connectMigrateOpts) (*sql.DB, error) {
dbtype = "postgres"
default:
// default to sqlite
datasource = fmt.Sprintf("%s?_timeout=5000&_journal=WAL&_cache=shared", opts.SQliteConnection)
datasource = fmt.Sprintf("%s?_timeout=15000&_journal=WAL&_sync=NORMAL&_cache=shared", opts.SQliteConnection)
dbtype = "sqlite3"
}

Expand Down

0 comments on commit 0d29ddf

Please sign in to comment.