fix(storage,sqlite): prevent 'database is busy' error by using busy_timeout pragma

This commit is contained in:
2023-04-06 14:45:50 +02:00
parent 32c6f0a77e
commit 054e80bbfb
12 changed files with 75 additions and 85 deletions

View File

@ -73,7 +73,7 @@ func RunCommand() *cli.Command {
&cli.StringFlag{
Name: "storage-file",
Usage: "use `FILE` for SQLite storage database",
Value: ".edge/%APPID%/data.sqlite",
Value: ".edge/%APPID%/data.sqlite?_pragma=foreign_keys(1)&_pragma=busy_timeout=60000",
},
&cli.StringFlag{
Name: "accounts-file",