Structure
PostgresClient.Configuration.Options
Describes general client behavior options. Those settings are considered advanced options.
struct Options
Topics
Structures
Initializers
init()Create an options structure with default values.
Instance Properties
additionalStartupParametersAdditional parameters to send to the server on startup. The name value pairs are added to the initial startup message that the client sends to the server.connectTimeoutA timeout for creating a TCP/Unix domain socket connection. Defaults to10seconds.connectionIdleTimeoutThe maximum amount of time that a connection that is not part of theminimumConnectionsis kept open without being leased. Defaults to60seconds.keepAliveBehaviorThePostgresClient.Configuration.Options.KeepAliveBehaviorto ensure that the underlying tcp-connection is still active for idle connections.Nilmeans that the client shall not run keep alive queries to the server. Defaults to a keep alive query ofSELECT 1;every30seconds.maximumConnectionsThe maximum number of connections that the client may open to the server at any time. Must be greater thanminimumConnections. Defaults to20connections.minimumConnectionsThe minimum number of connections that the client shall keep open at any time, even if there is no demand. Defaults to0.requireBackendKeyDataWhether the connection is required to provide backend key data (internal Postgres stuff).tlsServerNameThe server name to use for certificate validation and SNI (Server Name Indication) when TLS is enabled. Defaults to none (but see below).
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype