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
type Output: Query<SqlType=Type>
Required Methods
Implementors
impl<'a, ST, QS, DB, Type, Selection> SelectDsl<Selection, Type> for BoxedSelectStatement<'a, ST, QS, DB> where DB: Backend + HasSqlType<Type>, Selection: SelectableExpression<QS, Type> + QueryFragment<DB> + 'a