pub struct AggregateQuery {
pub from: TableRef,
pub joins: Vec<Join>,
pub projection: Vec<AggregateProjection>,
pub predicate: Option<Predicate>,
pub group_by: Vec<Expr>,
pub having: Option<AggregatePredicate>,
pub order_by: Vec<AggregateOrderBy>,
pub pagination: Option<Pagination>,
}Fields§
§from: TableRef§joins: Vec<Join>§projection: Vec<AggregateProjection>§predicate: Option<Predicate>§group_by: Vec<Expr>§having: Option<AggregatePredicate>§order_by: Vec<AggregateOrderBy>§pagination: Option<Pagination>Implementations§
Source§impl AggregateQuery
impl AggregateQuery
pub fn from_entity<E: Entity>() -> Self
pub fn from_entity_as<E: Entity>(alias: &'static str) -> Self
pub fn project<P, I>(self, projection: I) -> Self
pub fn group_by<G, I>(self, group_by: I) -> Self
pub fn filter(self, predicate: Predicate) -> Self
pub fn join(self, join: Join) -> Self
pub fn inner_join<E: Entity>(self, on: Predicate) -> Self
pub fn left_join<E: Entity>(self, on: Predicate) -> Self
pub fn inner_join_as<E: Entity>( self, alias: &'static str, on: Predicate, ) -> Self
pub fn left_join_as<E: Entity>(self, alias: &'static str, on: Predicate) -> Self
pub fn having(self, predicate: AggregatePredicate) -> Self
pub fn order_by(self, order: AggregateOrderBy) -> Self
pub fn paginate(self, pagination: Pagination) -> Self
Trait Implementations§
Source§impl Clone for AggregateQuery
impl Clone for AggregateQuery
Source§fn clone(&self) -> AggregateQuery
fn clone(&self) -> AggregateQuery
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 AggregateQuery
impl Debug for AggregateQuery
Source§impl PartialEq for AggregateQuery
impl PartialEq for AggregateQuery
Source§fn eq(&self, other: &AggregateQuery) -> bool
fn eq(&self, other: &AggregateQuery) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AggregateQuery
Auto Trait Implementations§
impl Freeze for AggregateQuery
impl RefUnwindSafe for AggregateQuery
impl Send for AggregateQuery
impl Sync for AggregateQuery
impl Unpin for AggregateQuery
impl UnsafeUnpin for AggregateQuery
impl UnwindSafe for AggregateQuery
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