set sqlite _busy_timeout to 5s to handle database is locked errors

This commit is contained in:
Danny van Kooten 2018-10-10 11:59:21 +02:00
parent 3b99e78135
commit 6bc1af3564
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ func (c *Config) DSN() string {
}
dsn = mc.FormatDSN()
case SQLITE:
dsn = c.Name + "?_loc=auto&_busy_timeout=10000"
dsn = c.Name + "?_loc=auto&_busy_timeout=5000"
}
return dsn