| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Hasql.Pool.Extended
Synopsis
- data PoolConfig = PoolConfig {}
- initPostgresPool :: PoolConfig -> Map Text Text -> Maybe FilePathSecrets -> IO Pool
- data HasqlPoolMetrics = HasqlPoolMetrics {}
- initHasqlPoolMetrics :: IO HasqlPoolMetrics
- data Connections = Connections {
- connecting :: Set UUID
- inUse :: Set UUID
- readyForUse :: Set UUID
- observationHandler :: IORef Connections -> HasqlPoolMetrics -> Observation -> IO ()
Documentation
data PoolConfig Source #
Constructors
| PoolConfig | |
Fields
| |
Instances
| FromJSON PoolConfig Source # | |
Defined in Hasql.Pool.Extended Methods parseJSON :: Value -> Parser PoolConfig Source # parseJSONList :: Value -> Parser [PoolConfig] Source # | |
| Show PoolConfig Source # | |
Defined in Hasql.Pool.Extended Methods showsPrec :: Int -> PoolConfig -> ShowS # show :: PoolConfig -> String # showList :: [PoolConfig] -> ShowS # | |
| Eq PoolConfig Source # | |
Defined in Hasql.Pool.Extended | |
initPostgresPool :: PoolConfig -> Map Text Text -> Maybe FilePathSecrets -> IO Pool Source #
Creates a pool from postgres config params
HasqlPool.staticConnectionSettings translates the connection settings to the pool settings HasqlPool.settings translates the pool settings into pool config HasqlPool.acquire creates the pool. ezpz.
data HasqlPoolMetrics Source #
Constructors
| HasqlPoolMetrics | |
Fields | |
data Connections Source #
Constructors
| Connections | |
Fields
| |
observationHandler :: IORef Connections -> HasqlPoolMetrics -> Observation -> IO () Source #