mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-30 04:28:44 +00:00
Rename KeyPathRefining to Refinable
This commit is contained in:
1 parent
e49800d21d
commit
37aa7feee9
11 files changed
+190
-147
No files matched your search
@@ -565,13 +565,13 @@ private struct SQLQualifiedRelation {
|
||||
}
|
||||
|
||||
/// Removes all selections from joins
|
||||
func selectOnly(_ selection: [SQLSelectable]) -> SQLQualifiedRelation {
|
||||
func selectOnly(_ selection: [SQLSelectable]) -> Self {
|
||||
self.with(\.sourceSelection, selection.map { $0.qualifiedSelectable(with: sourceAlias) })
|
||||
.map(\.joins, { $0.mapValues { $0.selectOnly([]) } })
|
||||
}
|
||||
}
|
||||
|
||||
extension SQLQualifiedRelation: KeyPathRefining { }
|
||||
extension SQLQualifiedRelation: Refinable { }
|
||||
|
||||
/// A "qualified" source, where all tables are identified with a table alias.
|
||||
private enum SQLQualifiedSource {
|
||||
|
||||
Reference in new issue
Block a user