mirror of
https://github.com/optim-enterprises-bv/databunker.git
synced 2025-10-30 09:32:34 +00:00
Add miracle switch that makes sqlite more reliable
This commit is contained in:
@@ -75,7 +75,7 @@ func newDB(masterKey []byte, filepath *string) (dbcon, error) {
|
||||
|
||||
//ql.RegisterDriver2()
|
||||
//db, err := sql.Open("ql2", dbfile)
|
||||
db, err := sql.Open("sqlite3", dbfile)
|
||||
db, err := sql.Open("sqlite3", "file:"+dbfile+"?_journal_mode=WAL")
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to open databunker.db file: %s", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user