pub struct Binder<'a, 'b, T: Transaction, A: AsRef<[(&'static str, DataValue)]>> { /* private fields */ }Implementations§
Source§impl<T: Transaction, A: AsRef<[(&'static str, DataValue)]>> Binder<'_, '_, T, A>
impl<T: Transaction, A: AsRef<[(&'static str, DataValue)]>> Binder<'_, '_, T, A>
pub fn bind_aggregate( &mut self, children: LogicalPlan, agg_calls: Vec<ScalarExpression>, groupby_exprs: Vec<ScalarExpression>, ) -> LogicalPlan
pub fn extract_select_aggregate( &mut self, select_items: &mut [ScalarExpression], ) -> Result<(), DatabaseError>
pub fn extract_group_by_aggregate( &mut self, select_list: &mut [ScalarExpression], groupby: &[Expr], ) -> Result<(), DatabaseError>
pub fn extract_having_orderby_aggregate( &mut self, having: &Option<Expr>, orderbys: &[OrderByExpr], ) -> Result<(Option<ScalarExpression>, Option<Vec<SortField>>), DatabaseError>
Sourcepub fn validate_having_orderby(
&self,
expr: &ScalarExpression,
) -> Result<(), DatabaseError>
pub fn validate_having_orderby( &self, expr: &ScalarExpression, ) -> Result<(), DatabaseError>
Validate having or orderby clause is valid, if SQL has group by clause.
Source§impl<T: Transaction, A: AsRef<[(&'static str, DataValue)]>> Binder<'_, '_, T, A>
impl<T: Transaction, A: AsRef<[(&'static str, DataValue)]>> Binder<'_, '_, T, A>
pub fn bind_column( &mut self, column_def: &ColumnDef, column_index: Option<usize>, ) -> Result<ColumnCatalog, DatabaseError>
Source§impl<T: Transaction, A: AsRef<[(&'static str, DataValue)]>> Binder<'_, '_, T, A>
impl<T: Transaction, A: AsRef<[(&'static str, DataValue)]>> Binder<'_, '_, T, A>
pub fn bind_distinct( &mut self, children: LogicalPlan, select_list: Vec<ScalarExpression>, ) -> LogicalPlan
Source§impl<'a, T: Transaction, A: AsRef<[(&'static str, DataValue)]>> Binder<'a, '_, T, A>
impl<'a, T: Transaction, A: AsRef<[(&'static str, DataValue)]>> Binder<'a, '_, T, A>
pub fn bind_like( &mut self, negated: bool, expr: &Expr, pattern: &Expr, escape_char: &Option<char>, ) -> Result<ScalarExpression, DatabaseError>
pub fn bind_column_ref_from_identifiers( &mut self, idents: &[Ident], bind_table_name: Option<String>, ) -> Result<ScalarExpression, DatabaseError>
Source§impl<'a: 'b, 'b, T: Transaction, A: AsRef<[(&'static str, DataValue)]>> Binder<'a, 'b, T, A>
impl<'a: 'b, 'b, T: Transaction, A: AsRef<[(&'static str, DataValue)]>> Binder<'a, 'b, T, A>
pub fn extract_select_join(&mut self, select_items: &mut [ScalarExpression])
Source§impl<'a, 'b, T: Transaction, A: AsRef<[(&'static str, DataValue)]>> Binder<'a, 'b, T, A>
impl<'a, 'b, T: Transaction, A: AsRef<[(&'static str, DataValue)]>> Binder<'a, 'b, T, A>
pub fn new( context: BinderContext<'a, T>, args: &'a A, parent: Option<&'b Binder<'a, 'b, T, A>>, ) -> Self
pub fn bind(&mut self, stmt: &Statement) -> Result<LogicalPlan, DatabaseError>
pub fn bind_set_expr( &mut self, set_expr: &SetExpr, ) -> Result<LogicalPlan, DatabaseError>
Auto Trait Implementations§
impl<'a, 'b, T, A> Freeze for Binder<'a, 'b, T, A>
impl<'a, 'b, T, A> !RefUnwindSafe for Binder<'a, 'b, T, A>
impl<'a, 'b, T, A> Send for Binder<'a, 'b, T, A>
impl<'a, 'b, T, A> Sync for Binder<'a, 'b, T, A>
impl<'a, 'b, T, A> Unpin for Binder<'a, 'b, T, A>
impl<'a, 'b, T, A> !UnwindSafe for Binder<'a, 'b, T, 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> 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