(expression: SQLWrapper)
| 33 | * @see count to get the number of values in `expression`, including duplicates |
| 34 | */ |
| 35 | export function countDistinct(expression: SQLWrapper): SQL<number> { |
| 36 | return sql`count(distinct ${expression})`.mapWith(Number); |
| 37 | } |
| 38 | |
| 39 | /** |
| 40 | * Returns the average (arithmetic mean) of all non-null values in `expression`. |
no test coverage detected