Initializer
init(hostname:port:username:password:database:tls:)
Create a
SQLPostgresConfiguration for connecting to a server with a hostname and optional port.init(hostname: String, port: Int = Self.ianaPortNumber, username: String, password: String? = nil, database: String? = nil, tls: PostgresConnection.Configuration.TLS)
Discussion
This specifies a TCP connection. If you’re unsure which kind of connection you want, you almost definitely want this one.