mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-22 04:00:39 +00:00
Association is Sendable
This commit is contained in:
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:
|
||||
//
|
||||
|
||||
@@ -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) }
|
||||
|
||||
Reference in new issue
Block a user