Trait block_tools::db::use_diesel::query_dsl::GroupByDsl [−][src]
This trait is not yet part of Diesel's public API. It may change in the future without a major version bump.
This trait exists as a stop-gap for users who need to use GROUP BY
in
their queries, so that they are not forced to drop entirely to raw SQL. The
arguments to group_by
are not checked, nor is the select statement
forced to be valid.
Since Diesel otherwise assumes that you have no GROUP BY
clause (which
would mean that mixing an aggregate and non aggregate expression in the same
query is an error), you may need to use sql
for your select clause.
Associated Types
Loading content...Required methods
Loading content...Implementors
impl<'a, ST, QS, DB, Expr> GroupByDsl<Expr> for BoxedSelectStatement<'a, ST, QS, DB> where
DB: Backend,
Expr: QueryFragment<DB> + AppearsOnTable<QS> + 'a,
BoxedSelectStatement<'a, ST, QS, DB>: Query,
[src]
DB: Backend,
Expr: QueryFragment<DB> + AppearsOnTable<QS> + 'a,
BoxedSelectStatement<'a, ST, QS, DB>: Query,
type Output = BoxedSelectStatement<'a, ST, QS, DB>
pub fn group_by(
self,
group_by: Expr
) -> <BoxedSelectStatement<'a, ST, QS, DB> as GroupByDsl<Expr>>::Output
[src]
self,
group_by: Expr
) -> <BoxedSelectStatement<'a, ST, QS, DB> as GroupByDsl<Expr>>::Output
impl<T, Expr> GroupByDsl<Expr> for T where
T: Table + AsQuery,
Expr: Expression,
<T as AsQuery>::Query: GroupByDsl<Expr>,
[src]
T: Table + AsQuery,
Expr: Expression,
<T as AsQuery>::Query: GroupByDsl<Expr>,