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
var additionalStartupParameters: [(String, String)]Additional 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.var connectTimeout: DurationA timeout for creating a TCP/Unix domain socket connection. Defaults to10seconds.var connectionIdleTimeout: DurationThe maximum amount of time that a connection that is not part of theminimumConnectionsis kept open without being leased. Defaults to60seconds.var keepAliveBehavior: PostgresClient.Configuration.Options.KeepAliveBehavior?ThePostgresClient.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.var maximumConnections: IntThe maximum number of connections that the client may open to the server at any time. Must be greater thanminimumConnections. Defaults to20connections.var minimumConnections: IntThe minimum number of connections that the client shall keep open at any time, even if there is no demand. Defaults to0.var requireBackendKeyData: BoolWhether the connection is required to provide backend key data (internal Postgres stuff).var tlsServerName: String?The 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