vapor / fluent-mysql-driver

🖋🐬 Swift ORM (queries, models, relations, etc) built on MySQL.
MIT License
77 stars 52 forks source link

Actually support query logging #225

Closed gwynne closed 5 months ago

gwynne commented 5 months ago

These changes are now available in 4.6.0

Now supports query logging with the same semantics as the other drivers.

Also cleans up some Sendable issues and fixes some warnings in the tests.

codecov[bot] commented 5 months ago

Codecov Report

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

Project coverage is 98.00%. Comparing base (4f07d7f) to head (40f6710).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #225 +/- ## ========================================== - Coverage 98.87% 98.00% -0.88% ========================================== Files 7 7 Lines 266 250 -16 ========================================== - Hits 263 245 -18 - Misses 3 5 +2 ``` | [Files](https://app.codecov.io/gh/vapor/fluent-mysql-driver/pull/225?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor) | Coverage Δ | | |---|---|---| | [...s/FluentMySQLDriver/FluentMySQLConfiguration.swift](https://app.codecov.io/gh/vapor/fluent-mysql-driver/pull/225?src=pr&el=tree&filepath=Sources%2FFluentMySQLDriver%2FFluentMySQLConfiguration.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor#diff-U291cmNlcy9GbHVlbnRNeVNRTERyaXZlci9GbHVlbnRNeVNRTENvbmZpZ3VyYXRpb24uc3dpZnQ=) | `98.75% <100.00%> (+0.10%)` | :arrow_up: | | [Sources/FluentMySQLDriver/FluentMySQLDriver.swift](https://app.codecov.io/gh/vapor/fluent-mysql-driver/pull/225?src=pr&el=tree&filepath=Sources%2FFluentMySQLDriver%2FFluentMySQLDriver.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor#diff-U291cmNlcy9GbHVlbnRNeVNRTERyaXZlci9GbHVlbnRNeVNRTERyaXZlci5zd2lmdA==) | `100.00% <100.00%> (ø)` | | | [...ources/FluentMySQLDriver/MySQLError+Database.swift](https://app.codecov.io/gh/vapor/fluent-mysql-driver/pull/225?src=pr&el=tree&filepath=Sources%2FFluentMySQLDriver%2FMySQLError%2BDatabase.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor#diff-U291cmNlcy9GbHVlbnRNeVNRTERyaXZlci9NeVNRTEVycm9yK0RhdGFiYXNlLnN3aWZ0) | `100.00% <ø> (ø)` | | | [Sources/FluentMySQLDriver/MySQLRow+Database.swift](https://app.codecov.io/gh/vapor/fluent-mysql-driver/pull/225?src=pr&el=tree&filepath=Sources%2FFluentMySQLDriver%2FMySQLRow%2BDatabase.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor#diff-U291cmNlcy9GbHVlbnRNeVNRTERyaXZlci9NeVNRTFJvdytEYXRhYmFzZS5zd2lmdA==) | `85.71% <90.90%> (-6.60%)` | :arrow_down: | | [...ources/FluentMySQLDriver/FluentMySQLDatabase.swift](https://app.codecov.io/gh/vapor/fluent-mysql-driver/pull/225?src=pr&el=tree&filepath=Sources%2FFluentMySQLDriver%2FFluentMySQLDatabase.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor#diff-U291cmNlcy9GbHVlbnRNeVNRTERyaXZlci9GbHVlbnRNeVNRTERhdGFiYXNlLnN3aWZ0) | `97.80% <96.77%> (-2.20%)` | :arrow_down: |