(expression: SQLWrapper)
| 81 | * @see sumDistinct to get the sum of all non-null and non-duplicate values in `expression` |
| 82 | */ |
| 83 | export function sum(expression: SQLWrapper): SQL<string | null> { |
| 84 | return sql`sum(${expression})`.mapWith(String); |
| 85 | } |
| 86 | |
| 87 | /** |
| 88 | * Returns the sum of all non-null and non-duplicate values in `expression`. |
no test coverage detected