mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-26 10:09:50 +00:00
fix: PgConnectOptions docs (#3809)
This commit is contained in:
parent
97bf270caf
commit
154878547e
@ -134,6 +134,19 @@ impl PgConnectOptions {
|
||||
/// # use sqlx_postgres::PgConnectOptions;
|
||||
/// let options = PgConnectOptions::new();
|
||||
/// ```
|
||||
///
|
||||
/// Note: that unlike `libpq` the environment variables:
|
||||
///
|
||||
/// * `PGSSLROOTCERT`
|
||||
/// * `PGSSLCERT`
|
||||
/// * `PGSSLKEY`
|
||||
///
|
||||
/// Must not exclusively be path, ´sqlx-postgres` supports these variables
|
||||
/// encode the certificates / keys directly. Content snooping is done via
|
||||
/// `CertificateInput::from`.
|
||||
///
|
||||
/// Note: Putting key material in environment variables can be subjected to risk as on
|
||||
/// some platforms environment variables can be recovered by other (non root) users.
|
||||
pub fn new() -> Self {
|
||||
Self::new_without_pgpass().apply_pgpass()
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user