We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
distinct
PrimaryKeyedTable.TableColumns.count
1 parent fca8e59 commit fb083bdCopy full SHA for fb083bd
Sources/StructuredQueriesCore/PrimaryKeyed.swift
@@ -70,9 +70,10 @@ extension PrimaryKeyedTableDefinition {
70
/// - Parameter filter: A `FILTER` clause to apply to the aggregation.
71
/// - Returns: An expression representing the number of rows in this table.
72
public func count(
73
+ distinct isDistinct: Bool = false,
74
filter: (some QueryExpression<Bool>)? = Bool?.none
75
) -> some QueryExpression<Int> {
- primaryKey.count(filter: filter)
76
+ primaryKey.count(distinct: isDistinct, filter: filter)
77
}
78
79
0 commit comments