From 3404cc574be2474449536c17c8d4e663ac4046a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Tue, 2 Oct 2018 22:29:20 +0200 Subject: [PATCH] CHANGELOG --- CHANGELOG.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bd16eb486..dbb85a7cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ Release Notes ### New - [#422](https://github.com/groue/GRDB.swift/pull/422): Refining Association Requests +- [#423](https://github.com/groue/GRDB.swift/pull/423): Association Aggregates ### API diff @@ -29,6 +30,29 @@ Release Notes +extension TableRequest where Self: AggregatingRequest { + func groupByPrimaryKey() -> Self { +} + ++struct Annotation { } + ++extension HasManyAssociation where Destination: TableRecord { ++ func count() -> Annotation ++ func count(aliased name: String) -> Annotation ++ func average(_ column: Column) -> Annotation ++ func average(_ value: SQLSpecificExpressible, aliased name: String) -> Annotation ++ func max(_ column: Column) -> Annotation ++ func max(_ value: SQLSpecificExpressible, aliased name: String) -> Annotation ++ func min(_ column: Column -> Annotation ++ func min(_ value: SQLSpecificExpressible, aliased name: String) -> Annotation ++ func sum(_ column: Column) -> Annotation ++ func sum(_ value: SQLSpecificExpressible, aliased name: String) -> Annotation ++) + ++extension QueryInterfaceRequest where RowDecoder: TableRecord { ++ func annotated(with annotation: Annotation) -> QueryInterfaceRequest where A.OriginRowDecoder == RowDecoder ++} + ++extension TableRecord { ++ static func annotated(with annotation: Annotation) -> QueryInterfaceRequest where A.OriginRowDecoder == Self ++} ``` ## 3.3.1