diff --git a/GRDB/QueryInterface/Request/Association/Association.swift b/GRDB/QueryInterface/Request/Association/Association.swift index b52aa3122..7e6d7d0ac 100644 --- a/GRDB/QueryInterface/Request/Association/Association.swift +++ b/GRDB/QueryInterface/Request/Association/Association.swift @@ -33,7 +33,7 @@ import Foundation /// /// - ``ForeignKey`` /// - ``Inflections`` -public protocol Association: DerivableRequest { +public protocol Association: DerivableRequest, Sendable { // OriginRowDecoder and RowDecoder inherited from DerivableRequest provide // type safety: // diff --git a/GRDB/QueryInterface/SQL/SQLAssociation.swift b/GRDB/QueryInterface/SQL/SQLAssociation.swift index 4d9a8d30c..ea31e2f8d 100644 --- a/GRDB/QueryInterface/SQL/SQLAssociation.swift +++ b/GRDB/QueryInterface/SQL/SQLAssociation.swift @@ -49,7 +49,7 @@ /// through: Pivot1.hasMany(Pivot2.self), /// via: Pivot2.belongsTo(Destination.self))) /// Origin.including(required: association) -public struct _SQLAssociation { +public struct _SQLAssociation: Sendable { // All steps, from pivot to destination. Never empty. private(set) var steps: [SQLAssociationStep] var keyPath: [String] { steps.map(\.keyName) } diff --git a/TODO.md b/TODO.md index a633b06ec..a1f5de8f9 100644 --- a/TODO.md +++ b/TODO.md @@ -143,7 +143,7 @@ - [ ] GRDB7: doc (c0838cf9) - [X] GRDB7/BREAKING: PersistenceContainer is Sendable (50eefa8c) - [ ] GRDB7: TableRecord.databaseSelection must be declared as a computed property (24d232aa) -- [ ] GRDB7: Sendable: Association (b06aaee4) +- [X] GRDB7: Sendable: Association (b06aaee4) - [ ] GRDB7/Tests: Sendable: ValueObservationRecorder (2947b3d7) - [ ] GRDB7: ValueObservation.print cautiously uses its stream argument (5f8b39b7) - [ ] GRDB7/Tests: use a single and Sendable test TextOutputStream (bbb1a736)