(expression: SQLWrapper)
| 49 | * @see avgDistinct to get the average of all non-null and non-duplicate values in `expression` |
| 50 | */ |
| 51 | export function avg(expression: SQLWrapper): SQL<string | null> { |
| 52 | return sql`avg(${expression})`.mapWith(String); |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * Returns the average (arithmetic mean) of all non-null and non-duplicate values in `expression`. |
no test coverage detected