pub enum Agg {
CountStar {
distinct: bool,
},
Count(String, bool),
Sum(String),
Avg(String),
Min(String),
Max(String),
Sample(String),
GroupConcat(String, String, bool),
}Expand description
A supported aggregate function.
Variants§
CountStar
COUNT(*) — number of solutions in the group.
Count(String, bool)
COUNT(?v) — number of (optionally distinct) bound values.
Sum(String)
Avg(String)
Min(String)
Max(String)
Sample(String)
SAMPLE(?v) — any one value from the group.
GroupConcat(String, String, bool)
GROUP_CONCAT([DISTINCT] ?v; SEPARATOR=…) — values joined by the
separator (deduplicated when distinct).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Agg
impl RefUnwindSafe for Agg
impl Send for Agg
impl Sync for Agg
impl Unpin for Agg
impl UnsafeUnpin for Agg
impl UnwindSafe for Agg
Blanket Implementations§
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