mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
SQLRelation is Sendable
This commit is contained in:
1 parent
f2b0b1869c
commit
9545bf70e2
1 file changed
+3
-3
@@ -90,7 +90,7 @@
|
|||||||
/// // JOIN passport ON passport.citizenId = citizens.id
|
/// // JOIN passport ON passport.citizenId = citizens.id
|
||||||
/// // AND passport.countryCode IN ('BE', 'DE', 'FR', ...);
|
/// // AND passport.countryCode IN ('BE', 'DE', 'FR', ...);
|
||||||
/// Country.including(all: Country.citizens)
|
/// Country.including(all: Country.citizens)
|
||||||
struct SQLRelation {
|
struct SQLRelation: Sendable {
|
||||||
struct Child: Refinable {
|
struct Child: Refinable {
|
||||||
enum Kind {
|
enum Kind {
|
||||||
// Record.including(optional: association)
|
// Record.including(optional: association)
|
||||||
@@ -672,7 +672,7 @@ struct SQLLimit {
|
|||||||
|
|
||||||
// MARK: - SQLSource
|
// MARK: - SQLSource
|
||||||
|
|
||||||
struct SQLSource {
|
struct SQLSource: Sendable {
|
||||||
var tableName: String
|
var tableName: String
|
||||||
var alias: TableAlias?
|
var alias: TableAlias?
|
||||||
|
|
||||||
@@ -691,7 +691,7 @@ struct SQLSource {
|
|||||||
|
|
||||||
extension SQLRelation {
|
extension SQLRelation {
|
||||||
/// SQLRelation.Ordering provides the order clause to SQLRelation.
|
/// SQLRelation.Ordering provides the order clause to SQLRelation.
|
||||||
struct Ordering {
|
struct Ordering: Sendable {
|
||||||
private enum Element {
|
private enum Element {
|
||||||
case terms(DatabasePromise<[SQLOrdering]>)
|
case terms(DatabasePromise<[SQLOrdering]>)
|
||||||
case ordering(SQLRelation.Ordering)
|
case ordering(SQLRelation.Ordering)
|
||||||
|
|||||||
Reference in new issue
Block a user