Skip to content

Initializer

init(configuration:eventLoopGroup:)

Creates a new PostgresClient, that does not log any background information.
convenience init(configuration: PostgresClient.Configuration, eventLoopGroup: any EventLoopGroup = PostgresClient.defaultEventLoopGroup)

Parameters

configuration

The client’s configuration. See PostgresClient.Configuration for details.

eventLoopGroup

The underlying NIO EventLoopGroup. Defaults to defaultEventLoopGroup.

Discussion

Warning

The client can only lease connections if the user is running the client’s run() method in a long running task.