mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +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``
|
/// - ``ForeignKey``
|
||||||
/// - ``Inflections``
|
/// - ``Inflections``
|
||||||
public protocol Association: DerivableRequest {
|
public protocol Association: DerivableRequest, Sendable {
|
||||||
// OriginRowDecoder and RowDecoder inherited from DerivableRequest provide
|
// OriginRowDecoder and RowDecoder inherited from DerivableRequest provide
|
||||||
// type safety:
|
// type safety:
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
/// through: Pivot1.hasMany(Pivot2.self),
|
/// through: Pivot1.hasMany(Pivot2.self),
|
||||||
/// via: Pivot2.belongsTo(Destination.self)))
|
/// via: Pivot2.belongsTo(Destination.self)))
|
||||||
/// Origin.including(required: association)
|
/// Origin.including(required: association)
|
||||||
public struct _SQLAssociation {
|
public struct _SQLAssociation: Sendable {
|
||||||
// All steps, from pivot to destination. Never empty.
|
// All steps, from pivot to destination. Never empty.
|
||||||
private(set) var steps: [SQLAssociationStep]
|
private(set) var steps: [SQLAssociationStep]
|
||||||
var keyPath: [String] { steps.map(\.keyName) }
|
var keyPath: [String] { steps.map(\.keyName) }
|
||||||
|
|||||||
Reference in new issue
Block a user