Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module defines an interpreter for RunQuery
.
Synopsis
- newtype ConnectionPoolT m a = ConnectionPoolT {
- unConnectionPoolT :: PoolT Connection m a
- runConnectionPoolT :: (MonadIO m, MonadConc m) => m Connection -> Settings -> ConnectionPoolT m a -> m a
- defaultConnectionPoolSettings :: Settings
- connectionPoolMetrics :: ConnectionPoolT m (Metrics Natural)
Documentation
newtype ConnectionPoolT m a Source #
Interpreter for RunQuery
which dispatches queries to a pool of database connections
Since: 0.0.0
ConnectionPoolT | |
|
Instances
:: (MonadIO m, MonadConc m) | |
=> m Connection | Action to establish a new connection |
-> Settings | Connection pool settings |
-> ConnectionPoolT m a | Transformer to run |
-> m a |
Run connection pool transformer.
Since: 0.0.0
defaultConnectionPoolSettings :: Settings Source #
Default settings for the connection pool
Since: 0.0.0
connectionPoolMetrics :: ConnectionPoolT m (Metrics Natural) Source #
Retrieve the connection pool metrics.
Since: 0.0.0