Skip to content

rust: Add direct TLS negotiation support to SQLx sample #175

@danielfrankcom

Description

@danielfrankcom

Is your feature request related to a problem? Please describe.
The SQLx Rust library has a pending PR that adds support for PostgreSQL 17's direct TLS negotiation feature. This feature improves connection performance and compatibility with certain proxies, but our sample code hasn't been updated to take advantage of it yet.

Describe the solution you'd like
Once the upstream PR is merged, modify the SQLx sample to add support for the sslnegotiation connection parameter. This should demonstrate how to configure direct TLS negotiation for PostgreSQL 17+ servers.

Describe alternatives you've considered

  • None available.

Additional context
This feature was originally requested in #150 and has been broken out given many drivers already support this functionality.

The feature implementation is pending review from the maintainers in PR launchbadge/sqlx#3879.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions