Structure
PostgresClient.Configuration
struct Configuration
Topics
Structures
PostgresClient.Configuration.OptionsDescribes general client behavior options. Those settings are considered advanced options.PostgresClient.Configuration.TLS
Initializers
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
databaseThe name of the database to open.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
See Also
Essentials
PostgresClientA Postgres client that is backed by an underlying connection pool. UsePostgresClient.Configurationto change the client’s behavior.PostgresConnectionA Postgres connection. Use it to run queries against a Postgres server.- Running QueriesInteract with the PostgreSQL database by running Queries.