Document aggregate functions

This commit is contained in:
Gwendal Roué committed 2025-03-15 09:51:32 +01:00
1 parent 6eba24d169
commit 18eab53f74
1 file changed
+15 -15
+15 -15
View File
@@ -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:
///