rorm_sql/aggregation.rs
1/**
2Representation of an aggregator function
3*/
4#[derive(Copy, Clone, Debug)]
5pub enum SelectAggregator {
6 /// Returns the average value of all non-null values.
7 /// The result of avg is a floating point value, except all input values are null, than the
8 /// result will also be null.
9 Avg,
10 /// Returns the count of the number of times that the column is not null.
11 Count,
12 /// Returns the summary off all non-null values in the group.
13 /// If there are only null values in the group, this function will return null.
14 Sum,
15 /// Returns the maximum value of all values in the group.
16 /// If there are only null values in the group, this function will return null.
17 Max,
18 /// Returns the minimum value of all values in the group.
19 /// If there are only null values in the group, this function will return null.
20 Min,
21}