We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 343204f + aaeae3e commit d2b4631Copy full SHA for d2b4631
backend/sqlite/sqlite.go
@@ -29,15 +29,15 @@ import (
29
var schema string
30
31
func NewInMemoryBackend(opts ...backend.BackendOption) *sqliteBackend {
32
- b := newSqliteBackend("file::memory:", opts...)
+ b := newSqliteBackend("file::memory:?_mode=memory", opts...)
33
34
b.db.SetMaxOpenConns(1)
35
36
return b
37
}
38
39
func NewSqliteBackend(path string, opts ...backend.BackendOption) *sqliteBackend {
40
- return newSqliteBackend(fmt.Sprintf("file:%v", path), opts...)
+ return newSqliteBackend(fmt.Sprintf("file:%v?_mutex=no&_journal=wal", path), opts...)
41
42
43
func newSqliteBackend(dsn string, opts ...backend.BackendOption) *sqliteBackend {
0 commit comments