Sendable annotations for associations

This commit is contained in:
Gwendal Roué committed 2024-02-16 17:43:41 +01:00
1 parent c76215ba70
commit 1af8a2256f
2 files changed
+2 -2

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) }