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
configurationThe client’s configuration. See
PostgresClient.Configurationfor details.eventLoopGroupThe underlying NIO
EventLoopGroup. Defaults todefaultEventLoopGroup.
Discussion
Warning
The client can only lease connections if the user is running the client’s run() method in a long running task.