sqlx
sqlx copied to clipboard
Defer PostgreSQL passfile lookup
Loads the the PostgreSQL passfile on apply_pgpass and defers querying the password to get_password calls. This ensures the correct password is retrieved, even when builder methods are called on PgConnectOptions after initialization.
Does your PR solve an issue?
Fixes #2658
Is this a breaking change?
Yes. Parameters set by PgConnectOptions builder methods are now honored by the passfile lookup.