pub struct DbSetGroupedQuery<E: Entity> { /* private fields */ }Expand description
Query builder returned by DbSetQuery::group_by(...).
Implementations§
Source§impl<E: Entity> DbSetGroupedQuery<E>
impl<E: Entity> DbSetGroupedQuery<E>
Sourcepub fn select_aggregate<P>(self, projection: P) -> Selfwhere
P: AggregateProjections,
pub fn select_aggregate<P>(self, projection: P) -> Selfwhere
P: AggregateProjections,
Selects aggregate projections materialized by alias into DTOs.
Sourcepub fn try_select_aggregate<P>(self, projection: P) -> Result<Self, OrmError>where
P: AggregateProjections,
pub fn try_select_aggregate<P>(self, projection: P) -> Result<Self, OrmError>where
P: AggregateProjections,
Selects aggregate projections and validates aliases before execution.
Sourcepub fn having(self, predicate: AggregatePredicate) -> Self
pub fn having(self, predicate: AggregatePredicate) -> Self
Adds a HAVING predicate over aggregate expressions or group keys.
Sourcepub fn order_by(self, order: AggregateOrderBy) -> Self
pub fn order_by(self, order: AggregateOrderBy) -> Self
Adds aggregate ordering.
Sourcepub fn paginate(self, request: PageRequest) -> Self
pub fn paginate(self, request: PageRequest) -> Self
Applies page-based pagination to grouped aggregate rows.
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for DbSetGroupedQuery<E>
impl<E> !RefUnwindSafe for DbSetGroupedQuery<E>
impl<E> Send for DbSetGroupedQuery<E>
impl<E> Sync for DbSetGroupedQuery<E>
impl<E> Unpin for DbSetGroupedQuery<E>
impl<E> UnsafeUnpin for DbSetGroupedQuery<E>
impl<E> !UnwindSafe for DbSetGroupedQuery<E>
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