Postgres module

create_pool

procedure · 1 overloadsince 0.27.0Source

The config is copied. Nothing connects until the first acquire, or min_idle asks for it.

create_pool :: (
    config: Config,
    settings := Pool_Config.{}
) -> (*Pool, Pg_Error)

The config is copied. Nothing connects until the first acquire, or min_idle asks for it.

Parameters

config: Config
how to connect. It is copied.
settings := Pool_Config.{}
size and timeouts.

Returns

See also