Association is Sendable

This commit is contained in:
Gwendal Roué committed 2024-07-27 16:37:33 +02:00
1 parent 09182b2ad7
commit b06aaee438
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) }