diesel/query_builder/
group_by_clause.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
simple_clause!(NoGroupByClause, GroupByClause, " GROUP BY ");

pub trait ValidGroupByClause {
    type Expressions;
}

impl ValidGroupByClause for NoGroupByClause {
    type Expressions = ();
}

impl<GB> ValidGroupByClause for GroupByClause<GB> {
    type Expressions = GB;
}