pub struct JoinClause {
pub join_type: JoinType,
pub right_table: String,
pub right_alias: Option<String>,
pub constraint: JoinConstraintKind,
}Expand description
One JOIN clause from the FROM list. Multi-join queries
(A JOIN B ... JOIN C ...) become a Vec<JoinClause> evaluated
left-to-right against the accumulator. The match condition is one
of ON / USING / NATURAL (see JoinConstraintKind);
CROSS JOIN arrives here already rewritten to ON true.
Fields§
§join_type: JoinType§right_table: String§right_alias: Option<String>AS alias if the right table introduced one. Stored separately
from right_table so the executor can normalize on
alias.unwrap_or(right_table) for qualifier matching.
constraint: JoinConstraintKindWhat the join matches on. See JoinConstraintKind.
Trait Implementations§
Source§impl Clone for JoinClause
impl Clone for JoinClause
Source§fn clone(&self) -> JoinClause
fn clone(&self) -> JoinClause
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for JoinClause
impl RefUnwindSafe for JoinClause
impl Send for JoinClause
impl Sync for JoinClause
impl Unpin for JoinClause
impl UnsafeUnpin for JoinClause
impl UnwindSafe for JoinClause
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more