Struct gluesql::core::ast_builder::JoinNode
source · pub struct JoinNode<'a> { /* private fields */ }
Implementations§
source§impl<'a> JoinNode<'a>
impl<'a> JoinNode<'a>
pub fn new<N>(
prev_node: N,
name: String,
alias: Option<String>,
join_operator_type: JoinOperatorType,
) -> JoinNode<'a>where
N: Into<PrevNode<'a>>,
pub fn on<T>(self, 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 hash_executor<T, U>(self, key_expr: T, value_expr: U) -> HashJoinNode<'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>
pub fn prebuild_for_constraint(self) -> Result<JoinConstraintData, Error>
pub fn prebuild_for_hash_join( self, ) -> Result<(Select, TableFactor, JoinOperator), Error>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for JoinNode<'a>
impl<'a> RefUnwindSafe for JoinNode<'a>
impl<'a> Send for JoinNode<'a>
impl<'a> Sync for JoinNode<'a>
impl<'a> Unpin for JoinNode<'a>
impl<'a> UnwindSafe for JoinNode<'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