Skip to content

Type Method

connect(to:tlsConfiguration:serverHostname:logger:on:)

static func connect(to socketAddress: SocketAddress, tlsConfiguration: TLSConfiguration? = nil, serverHostname: String? = nil, logger: Logger = .init(label: "codes.vapor.postgres"), on eventLoop: any EventLoop) -> EventLoopFuture<PostgresConnection>