This commit is contained in:
Gwendal Roué committed 2018-05-01 15:03:36 +02:00
1 parent a3189f79b6
commit 8e2cdeebc3
3 files changed
+23 -22

No files matched your search

+9 -11
View File
@@ -49,6 +49,15 @@ struct QueryInterfaceQuery {
self.joins = joins
}
init(_ query: AssociationQuery) {
self.init(
source: query.source,
selection: query.selection,
filterPromise: query.filterPromise,
ordering: query.ordering,
joins: query.joins)
}
func sql(_ db: Database, _ context: inout SQLGenerationContext) throws -> String {
var sql = "SELECT"
@@ -393,17 +402,6 @@ extension QueryInterfaceQuery {
}
}
extension QueryInterfaceQuery {
init(_ query: AssociationQuery) {
self.init(
source: query.source,
selection: query.selection,
filterPromise: query.filterPromise,
ordering: query.ordering,
joins: query.joins)
}
}
// MARK: - AssociationJoin
/// Not to be mismatched with SQL join operators (inner join, left join).