Rename QueryOrdering to SQLRelation.Ordering

This commit is contained in:
Gwendal Roué committed 2019-02-02 16:43:10 +01:00
1 parent 5a942d7213
commit 9addac6f54
9 files changed
+100 -142

No files matched your search

@@ -473,22 +473,6 @@ struct Join {
return join
}
var finalizedAliases: [TableAlias] {
return relation.finalizedAliases
}
var finalizedSelection: [SQLSelectable] {
return relation.finalizedSelection
}
var finalizedOrdering: QueryOrdering {
return relation.finalizedOrdering
}
func finalizedRowAdapter(_ db: Database, fromIndex startIndex: Int, forKeyPath keyPath: [String]) throws -> (adapter: RowAdapter, endIndex: Int)? {
return try relation.finalizedRowAdapter(db, fromIndex: startIndex, forKeyPath: keyPath)
}
/// - precondition: relation is the result of finalizedRelation
func joinSQL(_ db: Database,_ context: inout SQLGenerationContext, leftAlias: TableAlias, isRequiredAllowed: Bool) throws -> String {
var isRequiredAllowed = isRequiredAllowed