Tighten SQLJoin

This commit is contained in:
Gwendal Roué committed 2019-03-15 08:41:57 +01:00
1 parent df84654554
commit 784ebcc8e9
8 files changed
+159 -160

No files matched your search

@@ -7,7 +7,7 @@ extension QueryInterfaceRequest where RowDecoder: TableRecord {
public func including<A: Association>(optional association: A) -> QueryInterfaceRequest where A.OriginRowDecoder == RowDecoder {
return mapQuery {
$0.mapRelation {
association.sqlAssociation.relation(from: $0, joinOperator: .optional)
association.sqlAssociation.relation(from: $0, joinKind: .optional)
}
}
}
@@ -18,7 +18,7 @@ extension QueryInterfaceRequest where RowDecoder: TableRecord {
public func including<A: Association>(required association: A) -> QueryInterfaceRequest where A.OriginRowDecoder == RowDecoder {
return mapQuery {
$0.mapRelation {
association.sqlAssociation.relation(from: $0, joinOperator: .required)
association.sqlAssociation.relation(from: $0, joinKind: .required)
}
}
}
@@ -29,7 +29,7 @@ extension QueryInterfaceRequest where RowDecoder: TableRecord {
public func joining<A: Association>(optional association: A) -> QueryInterfaceRequest where A.OriginRowDecoder == RowDecoder {
return mapQuery {
$0.mapRelation {
association.select([]).sqlAssociation.relation(from: $0, joinOperator: .optional)
association.select([]).sqlAssociation.relation(from: $0, joinKind: .optional)
}
}
}
@@ -40,7 +40,7 @@ extension QueryInterfaceRequest where RowDecoder: TableRecord {
public func joining<A: Association>(required association: A) -> QueryInterfaceRequest where A.OriginRowDecoder == RowDecoder {
return mapQuery {
$0.mapRelation {
association.select([]).sqlAssociation.relation(from: $0, joinOperator: .required)
association.select([]).sqlAssociation.relation(from: $0, joinKind: .required)
}
}
}