Initializer
init(unixSocketPath:username:password:database:)
iOS 16.0+
macOS 13.0+
tvOS 16.0+
watchOS 9.0+
Create a configuration for connecting to a server through a UNIX domain socket.
init(unixSocketPath: String, username: String, password: String?, database: String?)
Parameters
unixSocketPathThe filesystem path of the socket to connect to.
usernameThe username to authenticate with.
passwordThe password to authenticate with.
databaseThe database to open. If
nil, the client connects to the server’s default database.