vapor / sql-kit

*️⃣ Build SQL queries in Swift. Extensible, protocol-based design that supports DQL, DML, and DDL.
MIT License
248 stars 58 forks source link

Add support for specifying a query logging level at the SQLKit layer #167

Closed gwynne closed 1 year ago

gwynne commented 1 year ago

Add SQLDatabase.queryLogLevel protocol requirement, defaulting to .debug for databases which don't implement it. Each individual driver must implement support for this logging. This corresponds to the sqlLogLevel configuration in FluentPostgresDriver and is the first step in normalizing support for it at the PostgresKit/MySQLKit/SQLiteKit layer.

codecov-commenter commented 1 year ago

Codecov Report

Merging #167 (18df75b) into main (d547122) will decrease coverage by 0.04%. The diff coverage is 0.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #167 +/- ## ========================================== - Coverage 69.41% 69.37% -0.04% ========================================== Files 94 94 Lines 3495 3497 +2 ========================================== Hits 2426 2426 - Misses 1069 1071 +2 ``` | [Impacted Files](https://app.codecov.io/gh/vapor/sql-kit/pull/167?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor) | Coverage Δ | | |---|---|---| | [Sources/SQLKit/SQLDatabase.swift](https://app.codecov.io/gh/vapor/sql-kit/pull/167?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor#diff-U291cmNlcy9TUUxLaXQvU1FMRGF0YWJhc2Uuc3dpZnQ=) | `0.00% <0.00%> (ø)` | |
VaporBot commented 1 year ago

These changes are now available in 3.26.0