pub trait GroupByDsl<Expr: Expression> {
    type Output;

    // Required method
    fn group_by(self, expr: Expr) -> GroupBy<Self, Expr>;
}
Expand description

The group_by method

This trait should not be relied on directly by most apps. Its behavior is provided by QueryDsl. However, you may need a where clause on this trait to call group_by from generic code.

Required Associated Types§

source

type Output

The type returned by .group_by

Required Methods§

source

fn group_by(self, expr: Expr) -> GroupBy<Self, Expr>

See the trait documentation.

Implementors§

source§

impl<S, Expr> GroupByDsl<Expr> for Alias<S>where Expr: Expression, Self: QuerySource + AsQuery<Query = SelectStatement<FromClause<Self>>>, <Self as QuerySource>::DefaultSelection: Expression<SqlType = <Self as AsQuery>::SqlType> + ValidGrouping<()>, <Self as AsQuery>::SqlType: TypedExpressionType, <Self as AsQuery>::Query: GroupByDsl<Expr>,

§

type Output = <SelectStatement<FromClause<Alias<S>>, DefaultSelectClause<FromClause<Alias<S>>>, NoDistinctClause, NoWhereClause, NoOrderClause, LimitOffsetClause<NoLimitClause, NoOffsetClause>, NoGroupByClause, NoHavingClause, NoLockingClause> as GroupByDsl<Expr>>::Output

source§

impl<T, Expr> GroupByDsl<Expr> for Twhere Expr: Expression, T: Table + AsQuery<Query = SelectStatement<FromClause<T>>>, T::DefaultSelection: Expression<SqlType = T::SqlType> + ValidGrouping<()>, T::SqlType: TypedExpressionType, T::Query: GroupByDsl<Expr>,

§

type Output = <SelectStatement<FromClause<T>, DefaultSelectClause<FromClause<T>>, NoDistinctClause, NoWhereClause, NoOrderClause, LimitOffsetClause<NoLimitClause, NoOffsetClause>, NoGroupByClause, NoHavingClause, NoLockingClause> as GroupByDsl<Expr>>::Output