Trait diesel::prelude::SelectDsl
[−]
[src]
pub trait SelectDsl<Selection: Expression, Type = Selection::SqlType> { type Output: Query<SqlType=Type>; 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).
Associated Types
Required Methods
Implementors
impl<T, Selection, Type> SelectDsl<Selection, Type> for T where Selection: Expression,
T: QuerySource + AsQuery,
T::Query: SelectDsl<Selection, Type>