Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data ApiaryPersistConfig l
- defaultApiaryPersistConfig :: ApiaryPersistConfig NoLoggingT
- withWithSqlPool :: (forall a. (ConnectionPool -> m a) -> m a) -> (HasPersist NoLoggingT => m b) -> m b
- withWithSqlPool' :: ApiaryPersistConfig logger -> (forall a. (ConnectionPool -> m a) -> m a) -> (HasPersist logger => m b) -> m b
- runSql :: (MonadBaseControl IO (l (ResourceT IO)), MonadIO m, HasPersist l) => SqlPersistT (l (ResourceT IO)) a -> m a
- runSql' :: (MonadBaseControl IO logger, MonadIO m, HasPersist logger') => (logger a -> ResourceT IO b) -> SqlPersistT logger a -> m b
- type HasPersist l = ?webApiaryDatabasePersistState :: ApiaryPersistState l
- type LogRunner l = forall a. l (ResourceT IO) a -> ResourceT IO a
- module Database.Persist.Sql
configuration
data ApiaryPersistConfig l Source
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 (l (ResourceT IO)), MonadIO m, HasPersist l) => SqlPersistT (l (ResourceT IO)) a -> m a Source
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
reexport
module Database.Persist.Sql