pub struct JoinClause {
pub kind: JoinKind,
pub source: String,
pub alias: Option<String>,
pub on: Option<Expr>,
}Expand description
A join clause appended to a query’s primary source.
Example syntax (Mission E1.1 parser accepts this; executor still errors):
User as u inner join Order as o on u.id = o.user_id filter o.total > 100
Fields§
§kind: JoinKind§source: String§alias: Option<String>§on: Option<Expr>on <expr> — required for every kind except Cross.
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 moreSource§impl Debug for JoinClause
impl Debug for JoinClause
Source§impl PartialEq for JoinClause
impl PartialEq for JoinClause
Source§fn eq(&self, other: &JoinClause) -> bool
fn eq(&self, other: &JoinClause) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq 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