Structure
SQLPostgresConfiguration
Provides configuration paramters for establishing PostgreSQL database connections.
struct SQLPostgresConfiguration
Topics
Initializers
init(coreConfiguration: PostgresConnection.Configuration, searchPath: [String]?)init(establishedChannel: any Channel, username: String, password: String?, database: String?)Create aSQLPostgresConfigurationfor establishing a connection to a server over a preestablishedNIOCore.Channel.init(hostname: String, port: Int, username: String, password: String?, database: String?, tls: PostgresConnection.Configuration.TLS)Create aSQLPostgresConfigurationfor connecting to a server with a hostname and optional port.init(legacyConfiguration: PostgresConfiguration)init(unixDomainSocketPath: String, username: String, password: String?, database: String?)Create aSQLPostgresConfigurationfor connecting to a server through a UNIX domain socket.init(url:)Create aSQLPostgresConfigurationfrom a string containing a properly formatted URL.
Instance Properties
var coreConfiguration: PostgresConnection.Configurationvar searchPath: [String]?Optionalsearch_pathto set on new connections.
Type Properties
static var ianaPortNumber: IntIANA-assigned port number for PostgreSQLUInt16(getservbyname("postgresql", "tcp").pointee.s_port).byteSwapped
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype