We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9450d7 commit 866189cCopy full SHA for 866189c
1 file changed
pkg/storage/sqlite.go
@@ -33,7 +33,8 @@ type SQLiteDB struct {
33
}
34
35
func NewSQLiteDB(dbPath string) (DB, error) {
36
- db, err := sql.Open("sqlite3", dbPath)
+ dsn := fmt.Sprintf("file:%s?_busy_timeout=5000&_journal_mode=WAL", dbPath)
37
+ db, err := sql.Open("sqlite3", dsn)
38
if err != nil {
39
return nil, xerror.Wrapf(err, xerror.DB, "sqlite: open sqlite3 path %s failed", dbPath)
40
0 commit comments