Safe Haskell | None |
---|
Make running Persistent based database transactions easy in Scottish apps.
- runSql :: (MonadTrans t, HasDatabaseConnectionPool Connection config) => SqlPersistM a -> t (Scottish config s s') a
- runSql' :: HasDatabaseConnectionPool Connection config => SqlPersistM a -> ScottishActionM' config s' a
Documentation
runSql :: (MonadTrans t, HasDatabaseConnectionPool Connection config) => SqlPersistM a -> t (Scottish config s s') aSource
runSql' :: HasDatabaseConnectionPool Connection config => SqlPersistM a -> ScottishActionM' config s' aSource
Catches any synchronous exceptions thrown when executing the database
transaction, and raise
an internalServerError500
instead.