Association is Sendable

This commit is contained in:
Gwendal Roué committed 2024-09-15 12:10:13 +02:00
1 parent 29f8aa38fb
commit 3728628e5f
3 files changed
+3 -3

No files matched your search

@@ -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:
//
+1 -1
View File
@@ -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) }
+1 -1
View File
@@ -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)