-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Embed sqlite amalgamation 3.48.0 source code and fix Sendable warnings #79
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #79 +/- ##
=======================================
Coverage 66.28% 66.28%
=======================================
Files 9 9
Lines 777 777
=======================================
Hits 515 515
Misses 262 262
|
@@ -103,7 +103,7 @@ extension SQLiteDatabase { | |||
} | |||
|
|||
/// Async version of ``withConnection(_:)-48y34``. | |||
public func withConnection<T>( | |||
public func withConnection<T: Sendable>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this breaking?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No not in the way we care about. It will produce a warning unless you're in Swift 6 language mode and for now we're not considering that breaking (same with NIO apparently)
@@ -162,7 +162,7 @@ private struct SQLiteDatabaseCustomLogger<D: SQLiteDatabase>: SQLiteDatabase { | |||
self.database.withConnection(closure) | |||
} | |||
// See `SQLiteDatabase.withConnection(_:)`. | |||
func withConnection<T>(_ closure: @escaping @Sendable (SQLiteConnection) async throws -> T) async throws -> T { | |||
func withConnection<T: Sendable>(_ closure: @escaping @Sendable (SQLiteConnection) async throws -> T) async throws -> T { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This too
@@ -103,7 +103,7 @@ extension SQLiteDatabase { | |||
} | |||
|
|||
/// Async version of ``withConnection(_:)-48y34``. | |||
public func withConnection<T>( | |||
public func withConnection<T: Sendable>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No not in the way we care about. It will produce a warning unless you're in Swift 6 language mode and for now we're not considering that breaking (same with NIO apparently)
These changes are now available in 1.11.0
Full change list:
Sendable
warnings