Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: PgConnectOptions docs #3809

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix: PgConnectOptions docs #3809

wants to merge 1 commit into from

Conversation

mbj
Copy link

@mbj mbj commented Mar 30, 2025

Note I'm PRing this to document the current behavior, I'm not sure if it was the intention of the original author to support MORE behavior than libpq offers.

If I look at pub fn ssl_client_key(self, key: impl AsRef<Path>) -> PgConnectOptions there is no way to "set" the inline version of CertificateInput, it only accepts the file version. This potentially should be lifted for symmetry with the environment variables.

This may not be the intention? But also I seen no reason to artificially constrain sqlx-postgres to libpq behavior, in lots of scenarios (single file lambda binary) its much better to be able to set the certificate inline.

Regardless of what the desired final behavior is: This PR just documents the status quo, even if we wish to change it in the future.

Is this a breaking change?

no

@mbj mbj force-pushed the fix/docs branch 3 times, most recently from f430a00 to 8c4b663 Compare March 30, 2025 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant