Skip to main content

sum

Function sum 

Source
pub fn sum<C: ColumnKey>(
    _column: Column<C>,
) -> Keyed<Agg<Sum, C>, Cons<C::Table, Nil>, <C::Sql as Summable>::Sum>
where C::Sql: Summable, <C::Sql as Summable>::Sum: SqlType,
Expand description

sum(column). NULL over zero rows, so the result is always nullable.