| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Hasql.Pool.Extended
Synopsis
- data PoolConfig = PoolConfig {}
- initPostgresPool :: PoolConfig -> Map Text Text -> Maybe FilePathSecrets -> IO Pool
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
HasqlConn.params translates pgParams into connection (which just holds the connection string and is not a real connection) HasqlSetting.connection unwraps the connection string out of connection HasqlPool.staticConnectionSettings translates the connection string to the pool settings HasqlPool.settings translates the pool settings into pool config HasqlPool.acquire creates the pool. ezpz.