Skip to content

Initializer

init(host:port:)

Deprecated

Use `Configuration.host` etc. instead.

Create a configuration for connecting to a server.
init(host: String, port: Int = 5432)

Parameters

host

The hostname to connect to.

port

The TCP port to connect to (defaults to 5432).