Trait diesel::prelude::SelectDsl
[−]
[src]
pub trait SelectDsl<Selection: Expression> {
type Output: Query<SqlType = <Selection as Expression>::SqlType>;
fn select(self, selection: Selection) -> Self::Output;
}Sets the select clause of a query. If there was already a select clause, it
will be overridden. The expression passed to select must actually be valid
for the query (only contains columns from the target table, doesn't mix
aggregate + non-aggregate expressions, etc).