mirror of
https://github.com/Forceu/Gokapi.git
synced 2026-02-04 23:48:31 -06:00
Change sqlite busy timeout to 30s
This commit is contained in:
@@ -81,7 +81,7 @@ func (p DatabaseProvider) init(dbConfig models.DbConnection) (DatabaseProvider,
|
||||
return DatabaseProvider{}, err
|
||||
}
|
||||
}
|
||||
p.sqliteDb, err = sql.Open("sqlite", cleanPath+"?_pragma=busy_timeout=10000&_pragma=journal_mode=WAL")
|
||||
p.sqliteDb, err = sql.Open("sqlite", cleanPath+"?_pragma=busy_timeout=30000&_pragma=journal_mode=WAL")
|
||||
if err != nil {
|
||||
return DatabaseProvider{}, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user