Skip to content

Initializer

init(configuration:eventLoopGroup:)

iOS 16.0+ macOS 13.0+ tvOS 16.0+ watchOS 9.0+
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.