vapor / fluent-postgres-driver

🐘 PostgreSQL driver for Fluent.
MIT License
146 stars 53 forks source link

Update package for Sendable, and other cleanup #217

Closed gwynne closed 4 months ago

gwynne commented 4 months ago

These changes are now available in 2.9.0

Adds Sendable correctness and ExistentialAny compliance, bumps min Swift version to 5.8, leverages the new SQLKit functionality, removes .error-level logging (uses .debug instead), updates CI, modernizes README and docs.

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 82.35294% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 63.77%. Comparing base (a538fc6) to head (8a456d7). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #217 +/- ## ========================================== + Coverage 63.12% 63.77% +0.64% ========================================== Files 8 8 Lines 339 334 -5 ========================================== - Hits 214 213 -1 + Misses 125 121 -4 ``` | [Files](https://app.codecov.io/gh/vapor/fluent-postgres-driver/pull/217?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor) | Coverage Ξ” | | |---|---|---| | [...ntPostgresDriver/FluentPostgresConfiguration.swift](https://app.codecov.io/gh/vapor/fluent-postgres-driver/pull/217?src=pr&el=tree&filepath=Sources%2FFluentPostgresDriver%2FFluentPostgresConfiguration.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor#diff-U291cmNlcy9GbHVlbnRQb3N0Z3Jlc0RyaXZlci9GbHVlbnRQb3N0Z3Jlc0NvbmZpZ3VyYXRpb24uc3dpZnQ=) | `36.76% <100.00%> (ΓΈ)` | | | [...es/FluentPostgresDriver/FluentPostgresDriver.swift](https://app.codecov.io/gh/vapor/fluent-postgres-driver/pull/217?src=pr&el=tree&filepath=Sources%2FFluentPostgresDriver%2FFluentPostgresDriver.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor#diff-U291cmNlcy9GbHVlbnRQb3N0Z3Jlc0RyaXZlci9GbHVlbnRQb3N0Z3Jlc0RyaXZlci5zd2lmdA==) | `100.00% <ΓΈ> (ΓΈ)` | | | [.../FluentPostgresDriver/PostgresError+Database.swift](https://app.codecov.io/gh/vapor/fluent-postgres-driver/pull/217?src=pr&el=tree&filepath=Sources%2FFluentPostgresDriver%2FPostgresError%2BDatabase.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor#diff-U291cmNlcy9GbHVlbnRQb3N0Z3Jlc0RyaXZlci9Qb3N0Z3Jlc0Vycm9yK0RhdGFiYXNlLnN3aWZ0) | `92.30% <100.00%> (+7.69%)` | :arrow_up: | | [...s/FluentPostgresDriver/DatabaseID+PostgreSQL.swift](https://app.codecov.io/gh/vapor/fluent-postgres-driver/pull/217?src=pr&el=tree&filepath=Sources%2FFluentPostgresDriver%2FDatabaseID%2BPostgreSQL.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor#diff-U291cmNlcy9GbHVlbnRQb3N0Z3Jlc0RyaXZlci9EYXRhYmFzZUlEK1Bvc3RncmVTUUwuc3dpZnQ=) | `0.00% <0.00%> (ΓΈ)` | | | [.../FluentPostgresDriver/FluentPostgresDatabase.swift](https://app.codecov.io/gh/vapor/fluent-postgres-driver/pull/217?src=pr&el=tree&filepath=Sources%2FFluentPostgresDriver%2FFluentPostgresDatabase.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor#diff-U291cmNlcy9GbHVlbnRQb3N0Z3Jlc0RyaXZlci9GbHVlbnRQb3N0Z3Jlc0RhdGFiYXNlLnN3aWZ0) | `81.08% <83.33%> (-3.73%)` | :arrow_down: |