From 4ec684b4939b53664b7375c3745c634cae8cee9d Mon Sep 17 00:00:00 2001 From: Gabriel Adrian Samfira Date: Wed, 28 Jun 2023 09:58:02 +0000 Subject: [PATCH] use journal mode WAL Signed-off-by: Gabriel Adrian Samfira --- config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index 2e7aee60..ccb73587 100644 --- a/config/config.go +++ b/config/config.go @@ -337,7 +337,7 @@ func (s *SQLite) Validate() error { } func (s *SQLite) ConnectionString() (string, error) { - return s.DBFile, nil + return fmt.Sprintf("%s?_pragma=journal_mode(wal)", s.DBFile), nil } // MySQL is the config entry for the mysql section