pub struct BoundAggregate {
pub func: AggregateFunc,
pub external: Option<Vec<u8>>,
pub distinct: bool,
pub arguments: Vec<BoundExpr>,
pub star: bool,
pub collation: Collation,
pub filter: Option<BoundExpr>,
pub order_by: Vec<BoundOrderTerm>,
}Expand description
One aggregate the statement computes.
Fields§
§func: AggregateFuncWhich aggregate.
external: Option<Vec<u8>>The name, when the aggregate is one an application registered.
distinct: boolWhether DISTINCT was written.
arguments: Vec<BoundExpr>The arguments, or empty for count(*).
star: boolWhether the call was count(*).
collation: CollationThe collation the aggregate compares with.
filter: Option<BoundExpr>The FILTER (WHERE ...) clause, when one was written.
A row the filter does not keep is not folded in at all - it does not
count, it does not sum and it does not appear in a group_concat.
order_by: Vec<BoundOrderTerm>The ORDER BY written inside the argument list.
Empty for nearly every call. It matters to the aggregates whose answer
depends on the order the rows arrive in - group_concat and the JSON
group aggregates - and SQLite accepts it on any of them.
Trait Implementations§
Source§impl Clone for BoundAggregate
impl Clone for BoundAggregate
Source§impl Debug for BoundAggregate
impl Debug for BoundAggregate
Source§impl PartialEq for BoundAggregate
impl PartialEq for BoundAggregate
impl StructuralPartialEq for BoundAggregate
Auto Trait Implementations§
impl !Send for BoundAggregate
impl !Sync for BoundAggregate
impl Freeze for BoundAggregate
impl RefUnwindSafe for BoundAggregate
impl Unpin for BoundAggregate
impl UnsafeUnpin for BoundAggregate
impl UnwindSafe for BoundAggregate
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