extended-0.1.0: Extended versions of common modules
Safe HaskellNone
LanguageGHC2021

Hasql.Pool.Extended

Synopsis

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.