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>,
}
Expand description

Binary join with optional ON predicate.

Fields§

§join: JoinType

Join kind.

§lhs: L

Left-hand data set.

§rhs: R

Right-hand data set.

§on: Option<E>

Optional ON expression.

Trait Implementations§

Source§

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

Source§

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

Should columns be qualified (schema.table.col)?
Source§

fn write_query( &self, writer: &dyn SqlWriter, context: &mut Context, out: &mut DynQuery, )

Render the sql bits representing this data set into out.
Source§

fn table_ref(&self) -> TableRef

TableRef representing this data set
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.