Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
Instances
MonadTrans DbT Source # | |
Defined in Traction.Control | |
Monad m => Monad (DbT m) Source # | |
Functor m => Functor (DbT m) Source # | |
Monad m => Applicative (DbT m) Source # | |
MonadIO m => MonadIO (DbT m) Source # | |
Defined in Traction.Control | |
MonadThrow m => MonadThrow (DbT m) Source # | |
Defined in Traction.Control | |
MonadCatch m => MonadCatch (DbT m) Source # | |
MonadMask m => MonadMask (DbT m) Source # | |
MonadIO m => MonadDb (DbT m) Source # | |
MFunctor DbT Source # | |
renderDbError :: DbError -> Text Source #
data DbPoolConfiguration Source #
Instances
Eq DbPoolConfiguration Source # | |
Defined in Traction.Control (==) :: DbPoolConfiguration -> DbPoolConfiguration -> Bool # (/=) :: DbPoolConfiguration -> DbPoolConfiguration -> Bool # | |
Ord DbPoolConfiguration Source # | |
Defined in Traction.Control compare :: DbPoolConfiguration -> DbPoolConfiguration -> Ordering # (<) :: DbPoolConfiguration -> DbPoolConfiguration -> Bool # (<=) :: DbPoolConfiguration -> DbPoolConfiguration -> Bool # (>) :: DbPoolConfiguration -> DbPoolConfiguration -> Bool # (>=) :: DbPoolConfiguration -> DbPoolConfiguration -> Bool # max :: DbPoolConfiguration -> DbPoolConfiguration -> DbPoolConfiguration # min :: DbPoolConfiguration -> DbPoolConfiguration -> DbPoolConfiguration # | |
Show DbPoolConfiguration Source # | |
Defined in Traction.Control showsPrec :: Int -> DbPoolConfiguration -> ShowS # show :: DbPoolConfiguration -> String # showList :: [DbPoolConfiguration] -> ShowS # |
transaction :: Db a -> Db a Source #
runDbWithT :: DbPool -> WithTransaction -> (DbError -> e) -> EitherT e Db a -> EitherT e IO a Source #
runDbTracingWithT :: DbPool -> Tracer -> WithTransaction -> (DbError -> e) -> EitherT e Db a -> EitherT e IO a Source #
newPoolWith :: ByteString -> DbPoolConfiguration -> Db () -> IO DbPool Source #
newRollbackPool :: ByteString -> IO DbPool Source #
newRollbackPoolWith :: ByteString -> DbPoolConfiguration -> Db () -> IO DbPool Source #
withRollbackSingletonPool :: (MonadMask m, MonadIO m) => ByteString -> (DbPool -> m a) -> m a Source #
withConnection :: Query -> (Connection -> IO a) -> Db a Source #