Trait diesel::query_dsl::methods::GroupByDsl

source ·
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<F, S, D, W, O, LOf, G, H, Expr> GroupByDsl<Expr> for SelectStatement<F, S, D, W, O, LOf, G, H>
where SelectStatement<F, S, D, W, O, LOf, GroupByClause<Expr>, H>: SelectQuery, Expr: Expression + AppearsOnTable<F>,

source§

type Output = SelectStatement<F, S, D, W, O, LOf, GroupByClause<Expr>, H>

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>,

source§

impl<T, Expr> GroupByDsl<Expr> for T