Rename Annotation to AssociationAggregate

This commit is contained in:
Gwendal Roué committed 2018-10-07 11:39:46 +02:00
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))
}