mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
Rename Annotation to AssociationAggregate
This commit is contained in:
1 parent
0838d5903e
commit
39bc140dc8
9 files changed
+177
-176
No files matched your search
@@ -99,8 +99,14 @@ extension QueryInterfaceRequest : DerivableRequest, AggregatingRequest {
|
||||
return select(SQLSelectionLiteral(sql, arguments: arguments), as: type)
|
||||
}
|
||||
|
||||
/// Support for annotations
|
||||
func appendingSelection(_ selection: [SQLSelectable]) -> QueryInterfaceRequest<T> {
|
||||
/// Creates a request which appends *selection*.
|
||||
///
|
||||
/// // SELECT id, email, name FROM player
|
||||
/// var request = Player.all()
|
||||
/// request = request
|
||||
/// .select([Column("id"), Column("email")])
|
||||
/// .appendingSelection([Column("name")])
|
||||
public func appendingSelection(_ selection: [SQLSelectable]) -> QueryInterfaceRequest<T> {
|
||||
return QueryInterfaceRequest(query: query.appendingSelection(selection))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user