Binder

Struct Binder 

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

Source

pub fn bind_aggregate( &mut self, children: LogicalPlan, agg_calls: Vec<ScalarExpression>, groupby_exprs: Vec<ScalarExpression>, ) -> LogicalPlan

Source

pub fn extract_select_aggregate( &mut self, select_items: &mut [ScalarExpression], ) -> Result<(), DatabaseError>

Source

pub fn extract_group_by_aggregate( &mut self, select_list: &mut [ScalarExpression], groupby: &[Expr], ) -> Result<(), DatabaseError>

Source

pub fn extract_having_orderby_aggregate( &mut self, having: &Option<Expr>, orderbys: &[OrderByExpr], ) -> Result<(Option<ScalarExpression>, Option<Vec<SortField>>), DatabaseError>

Source

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>

Source

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>

Source

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>

Source

pub fn bind_like( &mut self, negated: bool, expr: &Expr, pattern: &Expr, escape_char: &Option<char>, ) -> Result<ScalarExpression, DatabaseError>

Source

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>

Source

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>

Source

pub fn new( context: BinderContext<'a, T>, args: &'a A, parent: Option<&'b Binder<'a, 'b, T, A>>, ) -> Self

Source

pub fn bind(&mut self, stmt: &Statement) -> Result<LogicalPlan, DatabaseError>

Source

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>
where A: Sync, T: Sync,

§

impl<'a, 'b, T, A> Sync for Binder<'a, 'b, T, A>
where A: Sync, T: Sync,

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V