From 0d29ddf18d52ccba761bc49fb887b28dfeceeac5 Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Wed, 7 Aug 2024 16:06:49 +0200 Subject: [PATCH] bump sqlite connection defaults to timeout=15s and sync=NORMAL --- context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context.go b/context.go index 34cdeaf..4ea86a7 100644 --- a/context.go +++ b/context.go @@ -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" }