mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
TODO
This commit is contained in:
1 parent
560676a4bb
commit
acb7432610
3 files changed
+14
No files matched your search
@@ -179,6 +179,15 @@ extension QueryInterfaceRequest : DerivableRequest, AggregatingRequest {
|
||||
/// .select([Column("id"), Column("email")])
|
||||
/// .annotated(with: [Column("name")])
|
||||
public func annotated(with selection: [SQLSelectable]) -> QueryInterfaceRequest {
|
||||
// TODO: test consumption of
|
||||
//
|
||||
// let author = TableAlias()
|
||||
// let request = Book
|
||||
// .annotated(with: [author[Column("name")]])
|
||||
// .joining(requireed: Book.author)
|
||||
//
|
||||
// The problem is the "author.name" column. Can we consume it as "name"?
|
||||
// From raw rows? From copied rows?
|
||||
return mapQuery { $0.annotated(with: selection) }
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user