Safe Haskell | None |
---|---|
Language | GHC2021 |
Hasql.Pool.Extended
Synopsis
- initPostgresPool :: Map Text Text -> Maybe FilePathSecrets -> IO Pool
Documentation
initPostgresPool :: 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.