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

Support the sslmode URL query parameter and UDS URLs #248

Merged
merged 5 commits into from
Jul 27, 2023

Conversation

gwynne
Copy link
Member

@gwynne gwynne commented Jul 27, 2023

Overhauls the URL parser for connection configurations to accept considerably more flexible syntax. See the documentation for details of the new syntax. (A screenshot of the new documentation is included below in case the website doesn't update immediately.)

Fixes #247.


New documentation screenshot

@gwynne gwynne added enhancement New feature or request semver-minor Contains new APIs labels Jul 27, 2023
@gwynne gwynne requested review from 0xTim and MahdiBM July 27, 2023 16:29
@gwynne gwynne changed the title Support the sslmode URL query parameter Support the sslmode URL query parameter and UDS URLs Jul 27, 2023
@codecov-commenter
Copy link

Codecov Report

Merging #248 (4cc7697) into main (a88d025) will increase coverage by 5.31%.
Report is 1 commits behind head on main.
The diff coverage is 95.34%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #248      +/-   ##
==========================================
+ Coverage   30.79%   36.10%   +5.31%     
==========================================
  Files          13       13              
  Lines         708      734      +26     
==========================================
+ Hits          218      265      +47     
+ Misses        490      469      -21     
Files Changed Coverage Δ
.../PostgresKit/Deprecations/PostgresColumnType.swift 0.00% <ø> (ø)
...stgresConnectionSource+PostgresConfiguration.swift 0.00% <ø> (ø)
Sources/PostgresKit/SQLPostgresConfiguration.swift 85.10% <93.33%> (+67.45%) ⬆️
Sources/PostgresKit/PostgresDialect.swift 79.06% <100.00%> (+9.06%) ⬆️

@gwynne gwynne merged commit e0f6bc9 into main Jul 27, 2023
18 checks passed
@gwynne gwynne deleted the support-more-url-tls-modes branch July 27, 2023 19:07
@penny-for-vapor
Copy link

These changes are now available in 2.12.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request semver-minor Contains new APIs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Standard sslmode URL params
3 participants