Skip to content
Snippets Groups Projects
Commit 84777fae authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Just give SQLite3 a long time to spin before it gives up

parent a2d55463
Branches
No related tags found
1 merge request!68Have fewer SQLite3 "busy" errors
......@@ -336,7 +336,7 @@ sqlite path =
initialize :: Sqlite.Connection -> IO Sqlite.Connection
initialize dbConn = do
let exec = Sqlite.execute_ dbConn
exec "PRAGMA busy_timeout = 1000"
exec "PRAGMA busy_timeout = 60000"
exec "PRAGMA foreign_keys = ON"
Sqlite.withExclusiveTransaction dbConn $ do
exec "CREATE TABLE IF NOT EXISTS vouchers (id INTEGER PRIMARY KEY, name TEXT UNIQUE)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment