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
Auto 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