diesel::query_dsl::methods

Trait SelectDsl

Source
pub trait SelectDsl<Selection: Expression> {
    type Output;

    // Required method
    fn select(self, selection: Selection) -> Self::Output;
}
Expand description

The select method

This trait should not be relied on directly by most apps. Its behavior is provided by QueryDsl. However, you may need a where clause on this trait to call select from generic code.

Required Associated Types§

Source

type Output

The type returned by .select

Required Methods§

Source

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

See the trait documentation

Implementors§

Source§

impl<'a, ST, DB, Selection, GB> SelectDsl<Selection> for BoxedSelectStatement<'a, ST, NoFromClause, DB, GB>
where DB: Backend, Selection: SelectableExpression<NoFromClause> + QueryFragment<DB> + ValidGrouping<GB> + Send + 'a,

Source§

impl<S, D, W, O, LOf, G, H, LC, Selection> SelectDsl<Selection> for SelectStatement<NoFromClause, S, D, W, O, LOf, G, H, LC>
where G: ValidGroupByClause, Selection: SelectableExpression<NoFromClause> + ValidGrouping<G::Expressions>, SelectStatement<NoFromClause, SelectClause<Selection>, D, W, O, LOf, G, H, LC>: SelectQuery,

Source§

type Output = SelectStatement<NoFromClause, SelectClause<Selection>, D, W, O, LOf, G, H, LC>

Source§

impl<S, Selection> SelectDsl<Selection> for Alias<S>
where Selection: Expression, Self: AsQuery, <Self as AsQuery>::Query: SelectDsl<Selection>,

Source§

type Output = <<Alias<S> as AsQuery>::Query as SelectDsl<Selection>>::Output

Source§

impl<T, Selection> SelectDsl<Selection> for T
where Selection: Expression, T: Table, T::Query: SelectDsl<Selection>,

Source§

type Output = <<T as AsQuery>::Query as SelectDsl<Selection>>::Output