Skip to content

Type Method

postgres(hostname:port:username:password:database:tlsConfiguration:maxConnectionsPerEventLoop:connectionPoolTimeout:encoder:decoder:sqlLogLevel:)

static func postgres(hostname: String, port: Int = PostgresConfiguration.ianaPortNumber, username: String, password: String, database: String? = nil, tlsConfiguration: TLSConfiguration? = nil, maxConnectionsPerEventLoop: Int = 1, connectionPoolTimeout: TimeAmount = .seconds(10), encoder: PostgresDataEncoder = .init(), decoder: PostgresDataDecoder = .init(), sqlLogLevel: Logger.Level = .debug) -> DatabaseConfigurationFactory