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