pub enum AggregateFunction {
Count,
Sum,
Total,
Avg,
Min,
Max,
GroupConcat {
separator: Option<String>,
},
StringAgg {
separator: Option<String>,
},
PercentileDisc {
fraction: f64,
},
}Expand description
Supported aggregate function types.
Variants§
Count
Sum
Total
Avg
Min
Max
GroupConcat
StringAgg
PercentileDisc
Ordered-set aggregate PERCENTILE_DISC(fraction) WITHIN GROUP (ORDER BY ...) (issue #148). fraction is validated by the planner to
be a literal in [0, 1]. Issue #154 (PERCENTILE_CONT / MODE) extends
this enum with sibling variants reusing the same ordered-input path.
Trait Implementations§
Source§impl Clone for AggregateFunction
impl Clone for AggregateFunction
Source§fn clone(&self) -> AggregateFunction
fn clone(&self) -> AggregateFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AggregateFunction
impl Debug for AggregateFunction
Source§impl PartialEq for AggregateFunction
impl PartialEq for AggregateFunction
impl StructuralPartialEq for AggregateFunction
Auto Trait Implementations§
impl Freeze for AggregateFunction
impl RefUnwindSafe for AggregateFunction
impl Send for AggregateFunction
impl Sync for AggregateFunction
impl Unpin for AggregateFunction
impl UnsafeUnpin for AggregateFunction
impl UnwindSafe for AggregateFunction
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more