apiary-persistent-0.4.3.1: persistent support for apiary web framework.

Safe HaskellNone
LanguageHaskell2010

Web.Apiary.Database.Persist

Contents

Synopsis

configuration

runner

withWithSqlPool :: (forall a. (ConnectionPool -> m a) -> m a) -> (HasPersist NoLoggingT => m b) -> m b Source

withWithSqlPool' :: ApiaryPersistConfig logger -> (forall a. (ConnectionPool -> m a) -> m a) -> (HasPersist logger => m b) -> m b Source

execute sql

runSql' :: (MonadBaseControl IO logger, MonadIO m, HasPersist logger') => (logger a -> ResourceT IO b) -> SqlPersistT logger a -> m b Source

types

type HasPersist l = ?webApiaryDatabasePersistState :: ApiaryPersistState l Source

type LogRunner l = forall a. l (ResourceT IO) a -> ResourceT IO a Source

reexport