count method

Expr<int> count({
  1. bool distinct = false,
})

Counts non-NULL values, optionally counting only distinct values.

Implementation

Expr<int> count({bool distinct = false}) => Expr.internal(
  FunctionNode('COUNT', [expressionNode], distinct: distinct),
  Codecs.integer,
);