mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-30 04:28:44 +00:00
More Association trimming
This commit is contained in:
1 parent
e62cfe086c
commit
27c6390635
8 files changed
+47
-71
No files matched your search
@@ -86,7 +86,8 @@ extension SQLSelectQuery: SelectionRequest, FilteredRequest, OrderedRequest {
|
||||
return mapRelation { $0.qualified(with: alias) }
|
||||
}
|
||||
|
||||
private func mapRelation(_ transform: (SQLRelation) -> SQLRelation) -> SQLSelectQuery {
|
||||
/// Returns a query whose relation is transformed by the given closure.
|
||||
func mapRelation(_ transform: (SQLRelation) -> SQLRelation) -> SQLSelectQuery {
|
||||
var query = self
|
||||
query.relation = transform(relation)
|
||||
return query
|
||||
|
||||
Reference in new issue
Block a user