(expression?: SQLWrapper)
| 17 | * @see countDistinct to get the number of non-duplicate values in `expression` |
| 18 | */ |
| 19 | export function count(expression?: SQLWrapper): SQL<number> { |
| 20 | return sql`count(${expression || sql.raw('*')})`.mapWith(Number); |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * Returns the number of non-duplicate values in `expression`. |