scottish-0.1.0.1: scotty with batteries included

Safe HaskellNone

Web.Scottish.Database.Persist

Description

Make running Persistent based database transactions easy in Scottish apps.

Synopsis

Documentation

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.