Skip to content
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

Merged
merged 4 commits into from
Jan 16, 2025

Conversation

gwynne
Copy link
Member

@gwynne gwynne commented Jan 16, 2025

These changes are now available in 1.11.0

Full change list:

  • Update embedded SQLite from 3.47.2 to 3.48.0 (SQLite release notes).
  • Update minimum Swift version to 5.9
  • Fix new Sendable warnings

@gwynne gwynne added the semver-minor Contains new APIs label Jan 16, 2025
@gwynne gwynne requested review from 0xTim, MahdiBM and ptoffy January 16, 2025 10:11
Copy link

codecov bot commented Jan 16, 2025

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 66.28%. Comparing base (7353cca) to head (5b54e82).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
Sources/SQLiteNIO/SQLiteDatabase.swift 0.00% 1 Missing ⚠️
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           
Files with missing lines Coverage Δ
Sources/SQLiteNIO/SQLiteConnection.swift 69.09% <ø> (ø)
Sources/SQLiteNIO/SQLiteDatabase.swift 34.88% <0.00%> (ø)

@@ -103,7 +103,7 @@ extension SQLiteDatabase {
}

/// Async version of ``withConnection(_:)-48y34``.
public func withConnection<T>(
public func withConnection<T: Sendable>(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this breaking?

Copy link
Member

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 {
Copy link
Member

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>(
Copy link
Member

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)

@gwynne gwynne merged commit 256c6b8 into main Jan 16, 2025
11 of 12 checks passed
@gwynne gwynne deleted the sqlite-3.48.0 branch January 16, 2025 11:37
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
semver-minor Contains new APIs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants