-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support the sslmode URL query parameter and UDS URLs (#248)
* Add support for the sslmode values accepted by libpq, and support for UDS URLs. * Clean up docs * Improve code coverage info in CI and fix security issues in test workflow
- Loading branch information
Showing
9 changed files
with
225 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
Sources/PostgresKit/Deprecations/PostgresConnectionSource+PostgresConfiguration.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import NIOSSL | ||
import Atomics | ||
import AsyncKit | ||
import Logging | ||
import PostgresNIO | ||
import NIOCore | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# ``PostgresKit`` | ||
|
||
@Metadata { | ||
@TitleHeading(Package) | ||
} | ||
|
||
PostgresKit is a library providing an SQLKit driver for PostgresNIO. | ||
|
||
## Overview | ||
|
||
This package provides the "foundational" level of support for using [Fluent] with PostgreSQL by implementing the requirements of an [SQLKit] driver. It is responsible for: | ||
|
||
- Managing the underlying PostgreSQL library ([PostgresNIO]), | ||
- Providing a two-way bridge between PostgresNIO and SQLKit's generic data and metadata formats, | ||
- Presenting an interface for establishing, managing, and interacting with database connections. | ||
|
||
> Note: The FluentKit driver for PostgreSQL is provided by the [FluentPostgresDriver] package. | ||
## Version Support | ||
|
||
This package uses [PostgresNIO] for all underlying database interactions. It is compatible with all versions of PostgreSQL and all platforms supported by that package. | ||
|
||
> Important: There is one exception to the above at the time of this writing: This package requires Swift 5.7 or newer, whereas PostgresNIO continues to support Swift 5.6. | ||
[SQLKit]: https://swiftpackageindex.com/vapor/sql-kit | ||
[PostgresNIO]: https://swiftpackageindex.com/vapor/postgres-nio | ||
[Fluent]: https://swiftpackageindex.com/vapor/fluent-kit | ||
[FluentPostgresDriver]: https://swiftpackageindex.com/vapor/fluent-postgres-driver |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.