Skip to content

Commit 0d29ddf

Browse files
bump sqlite connection defaults to timeout=15s and sync=NORMAL
1 parent 889fc3d commit 0d29ddf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

context.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func connectAndMigrate(opts *connectMigrateOpts) (*sql.DB, error) {
8484
dbtype = "postgres"
8585
default:
8686
// default to sqlite
87-
datasource = fmt.Sprintf("%s?_timeout=5000&_journal=WAL&_cache=shared", opts.SQliteConnection)
87+
datasource = fmt.Sprintf("%s?_timeout=15000&_journal=WAL&_sync=NORMAL&_cache=shared", opts.SQliteConnection)
8888
dbtype = "sqlite3"
8989
}
9090

0 commit comments

Comments
 (0)