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:17 +02:00
parent 00b0261bc3
commit 3b99e78135

View File

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