rocket_db_pools::diesel::prelude

Trait SelectableExpression

Source
pub trait SelectableExpression<QS>: AppearsOnTable<QS>
where QS: ?Sized,
{ }
Expand description

Indicates that an expression can be selected from a source.

Columns will implement this for their table. Certain special types, like CountStar and Bound will implement this for all sources. Most compound expressions will implement this if each of their parts implement it.

Notably, columns will not implement this trait for the right side of a left join. To select a column or expression using a column from the right side of a left join, you must call .nullable() on it.

Implementations on Foreign Types§

Source§

impl<'a, T, QS> SelectableExpression<QS> for &'a T

Source§

impl<T0, QS> SelectableExpression<QS> for (T0,)

Source§

impl<T0, T1, QS> SelectableExpression<QS> for (T0, T1)

Source§

impl<T0, T1, T2, QS> SelectableExpression<QS> for (T0, T1, T2)

Source§

impl<T0, T1, T2, T3, QS> SelectableExpression<QS> for (T0, T1, T2, T3)

Source§

impl<T0, T1, T2, T3, T4, QS> SelectableExpression<QS> for (T0, T1, T2, T3, T4)

Source§

impl<T0, T1, T2, T3, T4, T5, QS> SelectableExpression<QS> for (T0, T1, T2, T3, T4, T5)

Source§

impl<T0, T1, T2, T3, T4, T5, T6, QS> SelectableExpression<QS> for (T0, T1, T2, T3, T4, T5, T6)

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, QS> SelectableExpression<QS> for (T0, T1, T2, T3, T4, T5, T6, T7)

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, QS> SelectableExpression<QS> for (T0, T1, T2, T3, T4, T5, T6, T7, T8)

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, QS> SelectableExpression<QS> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, QS> SelectableExpression<QS> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, QS> SelectableExpression<QS> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, QS> SelectableExpression<QS> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, QS> SelectableExpression<QS> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, QS> SelectableExpression<QS> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, QS> SelectableExpression<QS> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)

Source§

impl<T, QS> SelectableExpression<QS> for Box<T>
where T: SelectableExpression<QS> + ?Sized, Box<T>: AppearsOnTable<QS>,

Implementors§

Source§

impl<L, R, QS> SelectableExpression<QS> for Concat<L, R>

Source§

impl<QS> SelectableExpression<QS> for now
where now: AppearsOnTable<QS>,

Source§

impl<QS> SelectableExpression<QS> for today
where today: AppearsOnTable<QS>,

Source§

impl<QS, Query, Value> SelectableExpression<QS> for UncheckedBind<Query, Value>
where UncheckedBind<Query, Value>: AppearsOnTable<QS>,

Source§

impl<QS, ST, T> SelectableExpression<QS> for SqlLiteral<ST, T>
where SqlLiteral<ST, T>: Expression,

Source§

impl<S, C> SelectableExpression<Alias<S>> for AliasedField<S, C>
where S: AliasSource, C: Column<Table = <S as AliasSource>::Target>, AliasedField<S, C>: AppearsOnTable<Alias<S>>,

Source§

impl<ST, I, QS> SelectableExpression<QS> for Many<ST, I>
where Many<ST, I>: AppearsOnTable<QS>, ST: SingleValue, I: AsExpression<ST>, <I as AsExpression<ST>>::Expression: SelectableExpression<QS>,

Source§

impl<T, QS> SelectableExpression<QS> for Exists<T>
where Exists<T>: AppearsOnTable<QS>, Subselect<T, Bool>: SelectableExpression<QS>,

Source§

impl<T, U, QS> SelectableExpression<QS> for In<T, U>

Source§

impl<T, U, QS> SelectableExpression<QS> for NotIn<T, U>

Source§

impl<W, T, E, QS> SelectableExpression<QS> for CaseWhen<CaseWhenConditionsLeaf<W, T>, ElseExpression<E>>
where CaseWhen<CaseWhenConditionsLeaf<W, T>, ElseExpression<E>>: AppearsOnTable<QS>, W: SelectableExpression<QS>, T: SelectableExpression<QS>, E: SelectableExpression<QS>,

Source§

impl<W, T, QS> SelectableExpression<QS> for CaseWhen<CaseWhenConditionsLeaf<W, T>, NoElseExpression>
where CaseWhen<CaseWhenConditionsLeaf<W, T>, NoElseExpression>: AppearsOnTable<QS>, W: SelectableExpression<QS>, T: SelectableExpression<QS>,

Source§

impl<W, T, Whens, E, QS> SelectableExpression<QS> for CaseWhen<CaseWhenConditionsIntermediateNode<W, T, Whens>, E>
where CaseWhen<CaseWhenConditionsIntermediateNode<W, T, Whens>, E>: AppearsOnTable<QS>, W: SelectableExpression<QS>, T: SelectableExpression<QS>, CaseWhen<Whens, E>: SelectableExpression<QS>,