First annotation: HasManyAssociaton.count

This commit is contained in:
Gwendal Roué committed 2018-10-05 18:50:33 +02:00
1 parent 168d2850ab
commit 903694d095
10 files changed
+167

No files matched your search

@@ -98,6 +98,11 @@ extension QueryInterfaceRequest : DerivableRequest, AggregatingRequest {
public func select<RowDecoder>(sql: String, arguments: StatementArguments? = nil, as type: RowDecoder.Type) -> QueryInterfaceRequest<RowDecoder> {
return select(SQLSelectionLiteral(sql, arguments: arguments), as: type)
}
/// Support for annotations
func appendingSelection(_ selection: [SQLSelectable]) -> QueryInterfaceRequest<T> {
return QueryInterfaceRequest(query: query.appendingSelection(selection))
}
/// Creates a request which returns distinct rows.
///