diff --git a/db/sqlite.go b/db/sqlite.go index 9b5b85a5..23d5d2a1 100644 --- a/db/sqlite.go +++ b/db/sqlite.go @@ -18,7 +18,7 @@ var ( // NewSQLiteDB creates a new SQLite DB func NewSQLiteDB(dbPath string) (*sql.DB, error) { - return sql.Open("sqlite3", fmt.Sprintf("file:%s?_txlock=exclusive&_foreign_keys=on", dbPath)) + return sql.Open("sqlite3", fmt.Sprintf("file:%s?_txlock=exclusive&_foreign_keys=on&_journal_mode=WAL", dbPath)) } func ReturnErrNotFound(err error) error {