Skip to content

Initializer

init(unixSocketPath:username:password:database:)

Create a configuration for connecting to a server through a UNIX domain socket.
init(unixSocketPath: String, username: String, password: String?, database: String?)

Parameters

unixSocketPath

The filesystem path of the socket to connect to.

username

The username to authenticate with.

password

The password to authenticate with.

database

The database to open. If nil, the client connects to the server’s default database.