12345678910111213141516171819module juptune.postgres.protocol.connection;
struct PostgresConnectInfo
{
/++ VARIABLES ++/
/// If not null , then this store is used to validate the cluster's server certificate. If null then the host platform's default store is used instead.
X509CertificateStore* customStore;
/// The database to connect to. If null then the value of user is used as the database name.
const char[] databaseOrNull;
/// The plaintext password to use if password authentication is required.
const char[] plaintextPassword;
/// TLS negotiation mode.
PostgresTlsMode tlsMode;
/// The username to connect as.
const char[] user;
/// Policy for authenticating the server's certificate.
X509CertificateStore.SecurityPolicy x509Policy;
}
Information for connecting to a Postgres instance.
| Name | Description |
|---|---|
| customStore |
If not |
| databaseOrNull |
The database to connect to. If |
| plaintextPassword |
The plaintext password to use if password authentication is required. |
| tlsMode |
TLS negotiation mode. |
| user |
The username to connect as. |
| x509Policy |
Policy for authenticating the server's certificate. |