arbiter-simple-0.1.0.0: PostgreSQL-simple implementation of arbiter
Safe HaskellNone
LanguageGHC2024

Arbiter.Simple.MonadArbiter

Synopsis

Documentation

class Monad m => HasSimplePool (m :: Type -> Type) where Source #

Instances

Instances details
Monad m => HasSimplePool (SimpleDb registry m) Source # 
Instance details

Defined in Arbiter.Simple.SimpleDb

data SimpleConnectionPool Source #

Constructors

SimpleConnectionPool 

Fields

MonadArbiter implementation

simpleExecuteQuery :: (HasSimplePool m, MonadUnliftIO m) => Text -> Params -> RowCodec a -> m [a] Source #

simpleExecuteStatement :: (HasSimplePool m, MonadUnliftIO m) => Text -> Params -> m Int64 Source #

simpleWithDbTransaction :: (HasSimplePool m, MonadUnliftIO m) => m a -> m a Source #

simpleWithConnection :: (HasSimplePool m, MonadUnliftIO m) => m a -> m a Source #

simpleRunHandlerWithConnection :: (HasSimplePool m, MonadUnliftIO m) => (Connection -> jobs -> m result) -> jobs -> m result Source #