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 2468f4e commit 21f9a89Copy full SHA for 21f9a89
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