count_distinct

Function count_distinct 

Source
pub fn count_distinct<'a, V, E>(expr: E) -> SQLExpr<'a, V, BigInt, NonNull, Agg>
where V: SQLParam + 'a, E: Expr<'a, V>,
Expand description

COUNT(DISTINCT expr) - counts distinct non-null values.

Returns a BigInt, NonNull, Aggregate expression. Works with any expression type.