Struct gluesql::core::ast_builder::JoinConstraintNode
source · pub struct JoinConstraintNode<'a> { /* private fields */ }
Implementations§
source§impl<'a> JoinConstraintNode<'a>
impl<'a> JoinConstraintNode<'a>
pub fn new<N, T>(prev_node: N, expr: T) -> JoinConstraintNode<'a>
pub fn join(self, table_name: &str) -> JoinNode<'a>
pub fn join_as(self, table_name: &str, alias: &str) -> JoinNode<'a>
pub fn left_join(self, table_name: &str) -> JoinNode<'a>
pub fn left_join_as(self, table_name: &str, alias: &str) -> JoinNode<'a>
pub fn project<T>(self, select_items: T) -> ProjectNode<'a>where
T: Into<SelectItemList<'a>>,
pub fn group_by<T>(self, expr_list: T) -> GroupByNode<'a>
pub fn offset<T>(self, expr: T) -> OffsetNode<'a>
pub fn limit<T>(self, expr: T) -> LimitNode<'a>
pub fn filter<T>(self, expr: T) -> FilterNode<'a>
pub fn order_by<T>(self, order_by_exprs: T) -> OrderByNode<'a>where
T: Into<OrderByExprList<'a>>,
pub fn alias_as(self, table_alias: &'a str) -> TableFactorNode<'a>
Trait Implementations§
source§impl<'a> Clone for JoinConstraintNode<'a>
impl<'a> Clone for JoinConstraintNode<'a>
source§fn clone(&self) -> JoinConstraintNode<'a>
fn clone(&self) -> JoinConstraintNode<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for JoinConstraintNode<'a>
impl<'a> Debug for JoinConstraintNode<'a>
source§impl<'a> From<JoinConstraintNode<'a>> for QueryNode<'a>
impl<'a> From<JoinConstraintNode<'a>> for QueryNode<'a>
source§fn from(node: JoinConstraintNode<'a>) -> QueryNode<'a>
fn from(node: JoinConstraintNode<'a>) -> QueryNode<'a>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for JoinConstraintNode<'a>
impl<'a> RefUnwindSafe for JoinConstraintNode<'a>
impl<'a> Send for JoinConstraintNode<'a>
impl<'a> Sync for JoinConstraintNode<'a>
impl<'a> Unpin for JoinConstraintNode<'a>
impl<'a> UnwindSafe for JoinConstraintNode<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more