Join

Struct Join 

Source
pub struct Join<L: DataSet, R: DataSet, E: Expression> {
    pub join: JoinType,
    pub lhs: L,
    pub rhs: R,
    pub on: Option<E>,
}

Fields§

§join: JoinType§lhs: L§rhs: R§on: Option<E>

Trait Implementations§

Source§

impl<L: DataSet, R: DataSet, E: Expression> DataSet for Join<L, R, E>

Source§

fn qualified_columns() -> bool
where Self: Sized,

Must qualify the column names with the table name
Source§

fn write_query( &self, writer: &dyn SqlWriter, context: &mut Context, buff: &mut String, )

Source§

fn select<'s, Item, Cols, Exec, Expr>( &'s self, columns: Cols, executor: &'s mut Exec, condition: &Expr, limit: Option<u32>, ) -> impl Stream<Item = Result<RowLabeled>> + 's
where Self: Sized, Item: Expression, Cols: IntoIterator<Item = Item> + Clone, Exec: Executor, Expr: Expression,

Source§

fn prepare<Item, Cols, Exec, Expr>( &self, columns: Cols, executor: &mut Exec, condition: &Expr, limit: Option<u32>, ) -> impl Future<Output = Result<Query<Exec::Driver>>>
where Self: Sized, Item: Expression, Cols: IntoIterator<Item = Item> + Clone, Exec: Executor, Expr: Expression,

Source§

impl<L: Debug + DataSet, R: Debug + DataSet, E: Debug + Expression> Debug for Join<L, R, E>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<L, R, E> Freeze for Join<L, R, E>
where L: Freeze, R: Freeze, E: Freeze,

§

impl<L, R, E> RefUnwindSafe for Join<L, R, E>

§

impl<L, R, E> Send for Join<L, R, E>
where L: Send, R: Send,

§

impl<L, R, E> Sync for Join<L, R, E>
where L: Sync, R: Sync,

§

impl<L, R, E> Unpin for Join<L, R, E>
where L: Unpin, R: Unpin, E: Unpin,

§

impl<L, R, E> UnwindSafe for Join<L, R, E>
where L: UnwindSafe, R: UnwindSafe, E: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.