Initializer
init(configuration:eventLoopGroup:backgroundLogger:)
Creates a new
PostgresClient. Don’t forget to run() the client in a long-running task.init(configuration: PostgresClient.Configuration, eventLoopGroup: any EventLoopGroup = PostgresClient.defaultEventLoopGroup, backgroundLogger: Logger)
Parameters
configurationThe client’s configuration. See
PostgresClient.Configurationfor details.eventLoopGroupThe underlying NIO
EventLoopGroup. Defaults todefaultEventLoopGroup.backgroundLoggerA
swift-logLoggerto log background messages to. A copy of this logger is also forwarded to the created connections as a background logger.