Structure
PostgresConnection.Configuration
A configuration object for a connection.
struct Configuration
Topics
Structures
PostgresConnection.Configuration.AuthenticationLegacy authentication parameters structure. Replaced byusernameetc.PostgresConnection.Configuration.ConnectionLegacy connection parameters structure. Replaced byhostetc.PostgresConnection.Configuration.OptionsDescribes options affecting how the underlying connection is made.PostgresConnection.Configuration.TLSThe possible modes of operation for TLS encapsulation of a connection.
Initializers
init(connection:authentication:tls:)Legacy initializer. Replaced byinit(host:port:username:password:database:tls:)etc.init(establishedChannel:tls:username:password:database:)Create a configuration for establishing a connection to a Postgres server over a preestablishedNIOCore/Channel.init(establishedChannel:username:password:database:)Create a configuration for establishing a connection to a Postgres server over a preestablishedNIOCore/Channel.init(host:port:username:password:database:tls:)Create a configuration for connecting to a server with a hostname and optional port.init(unixSocketPath:username:password:database:)Create a configuration for connecting to a server through a UNIX domain socket.
Instance Properties
authenticationconnectionAccessor for legacy connection parameters. Replaced byhostetc.databaseThe name of the database to open.establishedChannelTheChannelto use in existing-channel configurations.hostThe hostname to connect to for TCP configurations.optionsOptions for handling the communication channel. Most users don’t need to change these.passwordThe password, if any, for the user specified byusername.portThe port to connect to for TCP configurations.tlsThe TLS mode to use for the connection. Valid for all configurations.unixSocketPathThe socket path to connect to for Unix domain socket connections.usernameThe username to connect with.
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype