use journal mode WAL

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
Gabriel Adrian Samfira 2023-06-28 09:58:02 +00:00
parent 4a2ba68867
commit 4ec684b493

View file

@ -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