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

Tidy up FluentKit #609

Merged
merged 7 commits into from
May 14, 2024
Merged

Tidy up FluentKit #609

merged 7 commits into from
May 14, 2024

Conversation

gwynne
Copy link
Member

@gwynne gwynne commented May 12, 2024

These changes are now available in 1.48.4

A few changes that were missed in previous cleanup and update passes:

  • Previously missing async versions of some Database methods are now present.
  • All SQLDatabase methods are now correctly forwarded when using Database.logging(to:).
  • All versions of the .sql(raw:) utility for directly embedding raw SQL into Fluent queries have been renamed to .sql(unsafeRaw:) to better emphasize the inadvisability of their use. The old name still works but is now deprecated.
  • SQLSchemaConverter is now very infinitesimally faster.
  • Fluent's tests now include the appropriate tests from SQLKit as well.
  • Removed some unneeded Sendable warning workarounds, should slightly improve performance.

@gwynne gwynne added enhancement New feature or request semver-patch Internal changes only labels May 12, 2024
@gwynne gwynne requested review from 0xTim, MahdiBM and ptoffy May 12, 2024 17:31
Copy link

codecov bot commented May 12, 2024

Codecov Report

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

Project coverage is 24.73%. Comparing base (ed4cfa9) to head (308ddcc).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #609      +/-   ##
==========================================
- Coverage   24.99%   24.73%   -0.26%     
==========================================
  Files         150      149       -1     
  Lines        8573     8590      +17     
==========================================
- Hits         2143     2125      -18     
- Misses       6430     6465      +35     
Files Coverage Δ
Sources/FluentBenchmark/FluentBenchmarker.swift 0.00% <ø> (ø)
Sources/FluentKit/Database/DatabaseID.swift 0.00% <ø> (ø)
Sources/FluentKit/FluentError.swift 0.00% <ø> (ø)
...urces/FluentSQL/SQLJSONColumnPath+Deprecated.swift 0.00% <ø> (ø)
Sources/FluentSQL/SQLSchemaConverter.swift 62.99% <100.00%> (-0.57%) ⬇️
Sources/FluentBenchmark/Tests/ChildTests.swift 0.00% <0.00%> (ø)
Sources/FluentBenchmark/Tests/FilterTests.swift 0.00% <0.00%> (ø)
Sources/FluentKit/Query/Builder/QueryBuilder.swift 73.46% <71.42%> (ø)
Sources/FluentKit/Schema/DatabaseSchema.swift 54.54% <0.00%> (ø)
Sources/FluentBenchmark/Tests/SQLTests.swift 0.00% <0.00%> (ø)
... and 10 more

@gwynne
Copy link
Member Author

gwynne commented May 14, 2024

SQLite integration tests will pass once vapor/fluent-sqlite-driver#90 is merged

@gwynne gwynne merged commit cb91bf9 into main May 14, 2024
11 of 14 checks passed
@gwynne gwynne deleted the cleanup branch May 14, 2024 14:15
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-patch Internal changes only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants