NumericExpression<T extends num> extension

SQL arithmetic and aggregation for Dart numeric values.

on

Methods

average() Expr<double?>

Available on Expr<T>, provided by the NumericExpression extension

Computes a floating-point SQL average, or null for an empty group.
minus(T n) Expr<T>

Available on Expr<T>, provided by the NumericExpression extension

Subtracts a bound value in SQL.
plus(T n) Expr<T>

Available on Expr<T>, provided by the NumericExpression extension

Adds a bound value in SQL.
sum() Expr<T?>

Available on Expr<T>, provided by the NumericExpression extension

Sums values, returning null for an empty group.
times(T n) Expr<T>

Available on Expr<T>, provided by the NumericExpression extension

Multiplies by a bound value in SQL.