1
Fork 0
mirror of https://github.com/Airsequel/AirGQL.git synced 2025-08-13 10:16:57 +03:00

Enable the foreign key pragma everywhere

This commit is contained in:
prescientmoon 2025-05-12 01:58:21 +02:00 committed by Adrian Sieber
commit 4fdbb30b5e
5 changed files with 8 additions and 5 deletions

View file

@ -64,6 +64,7 @@ import AirGQL.Utils (
getGraphiQLVersion,
getSqliteBinaryVersion,
getSqliteEmbeddedVersion,
withRetryConn,
)
import Server.Server (platformApp)
@ -198,7 +199,7 @@ main = do
putText versionSlug
----------
Serve{dbFilePath} -> do
SS.withConnection dbFilePath $ \conn -> do
withRetryConn dbFilePath $ \conn -> do
P.when (dbFilePath == "") $
P.die "ERROR: No database file path was specified"