Type Method
connect(on:configuration:id:logger:)
Creates a new connection to a Postgres server.
static func connect(on eventLoop: any EventLoop = PostgresConnection.defaultEventLoopGroup.any(), configuration: PostgresConnection.Configuration, id connectionID: PostgresConnection.ID, logger: Logger) async throws -> PostgresConnection
Parameters
eventLoopThe
EventLoopthe connection shall be created on.configurationA
PostgresConnection.Configurationthat shall be used for the connection.connectionIDAn
Intid, used for metadata loggingloggerA logger to log background events into.
Return Value
An established PostgresConnection that can be used to run queries.