From 18eab53f74800a90aee6852faaa1e8fec5997352 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 15 Mar 2025 09:51:32 +0100 Subject: [PATCH] Document aggregate functions --- GRDB/QueryInterface/SQL/SQLFunctions.swift | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/GRDB/QueryInterface/SQL/SQLFunctions.swift b/GRDB/QueryInterface/SQL/SQLFunctions.swift index 8f3ccfea4..a33669218 100644 --- a/GRDB/QueryInterface/SQL/SQLFunctions.swift +++ b/GRDB/QueryInterface/SQL/SQLFunctions.swift @@ -11,7 +11,7 @@ public func abs(_ value: some SQLSpecificExpressible) -> SQLExpression { } #if GRDBCUSTOMSQLITE || GRDBCIPHER -/// The `AVG` SQL function. +/// The `AVG` SQL aggregate function. /// /// For example: /// @@ -26,7 +26,7 @@ public func average( .aggregateFunction("AVG", [value.sqlExpression], filter: filter?.sqlExpression) } #else -/// The `AVG` SQL function. +/// The `AVG` SQL aggregate function. /// /// For example: /// @@ -44,7 +44,7 @@ public func average( filter: filter.sqlExpression) } -/// The `AVG` SQL function. +/// The `AVG` SQL aggregate function. /// /// For example: /// @@ -148,7 +148,7 @@ public func length(_ value: some SQLSpecificExpressible) -> SQLExpression { } #if GRDBCUSTOMSQLITE || GRDBCIPHER -/// The `MAX` SQL function. +/// The `MAX` SQL aggregate function. /// /// For example: /// @@ -163,7 +163,7 @@ public func max( .aggregateFunction("MAX", [value.sqlExpression], filter: filter?.sqlExpression) } #else -/// The `MAX` SQL function. +/// The `MAX` SQL aggregate function. /// /// For example: /// @@ -179,7 +179,7 @@ public func max( .aggregateFunction("MAX", [value.sqlExpression], filter: filter.sqlExpression) } -/// The `MAX` SQL function. +/// The `MAX` SQL aggregate function. /// /// For example: /// @@ -193,7 +193,7 @@ public func max(_ value: some SQLSpecificExpressible) -> SQLExpression { #endif #if GRDBCUSTOMSQLITE || GRDBCIPHER -/// The `MIN` SQL function. +/// The `MIN` SQL aggregate function. /// /// For example: /// @@ -208,7 +208,7 @@ public func min( .aggregateFunction("MIN", [value.sqlExpression], filter: filter?.sqlExpression) } #else -/// The `MIN` SQL function. +/// The `MIN` SQL aggregate function. /// /// For example: /// @@ -224,7 +224,7 @@ public func min( .aggregateFunction("MIN", [value.sqlExpression], filter: filter.sqlExpression) } -/// The `MIN` SQL function. +/// The `MIN` SQL aggregate function. /// /// For example: /// @@ -238,7 +238,7 @@ public func min(_ value: some SQLSpecificExpressible) -> SQLExpression { #endif #if GRDBCUSTOMSQLITE || GRDBCIPHER -/// The `SUM` SQL function. +/// The `SUM` SQL aggregate function. /// /// For example: /// @@ -262,7 +262,7 @@ public func sum( filter: filter?.sqlExpression) } #else -/// The `SUM` SQL function. +/// The `SUM` SQL aggregate function. /// /// For example: /// @@ -284,7 +284,7 @@ public func sum( filter: filter.sqlExpression) } -/// The `SUM` SQL function. +/// The `SUM` SQL aggregate function. /// /// For example: /// @@ -302,7 +302,7 @@ public func sum(_ value: some SQLSpecificExpressible) -> SQLExpression { #endif #if GRDBCUSTOMSQLITE || GRDBCIPHER -/// The `TOTAL` SQL function. +/// The `TOTAL` SQL aggregate function. /// /// For example: /// @@ -326,7 +326,7 @@ public func total( filter: filter?.sqlExpression) } #else -/// The `TOTAL` SQL function. +/// The `TOTAL` SQL aggregate function. /// /// For example: /// @@ -348,7 +348,7 @@ public func total( filter: filter.sqlExpression) } -/// The `TOTAL` SQL function. +/// The `TOTAL` SQL aggregate function. /// /// For example: ///