Trait diesel::SelectDsl [] [src]

pub trait SelectDsl<Selection: Expression, Type: NativeSqlType = 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

fn select(self, selection: Selection) -> Self::Output

Implementors