pub struct CompileContext<'a> { /* private fields */ }Expand description
Compilation context
Contains all the information needed to compile expressions:
- Column name to index mapping
- Function registry
- Outer query columns (for correlated subqueries)
Implementations§
Source§impl<'a> CompileContext<'a>
impl<'a> CompileContext<'a>
Sourcepub fn new(columns: &[String], functions: &'a FunctionRegistry) -> Self
pub fn new(columns: &[String], functions: &'a FunctionRegistry) -> Self
Create a new compilation context
Sourcepub fn with_global_registry(columns: &[String]) -> Self
pub fn with_global_registry(columns: &[String]) -> Self
Create context using global function registry
Sourcepub fn with_second_row(self, columns2: &[String]) -> Self
pub fn with_second_row(self, columns2: &[String]) -> Self
Add second row columns (for join compilation)
Sourcepub fn with_outer_columns(self, outer_cols: &[String]) -> Self
pub fn with_outer_columns(self, outer_cols: &[String]) -> Self
Add outer columns for correlated subqueries
Sourcepub fn with_expression_aliases(self, aliases: StringMap<u16>) -> Self
pub fn with_expression_aliases(self, aliases: StringMap<u16>) -> Self
Add expression aliases (for HAVING clause)
Sourcepub fn with_column_aliases(self, aliases: StringMap<String>) -> Self
pub fn with_column_aliases(self, aliases: StringMap<String>) -> Self
Add column aliases
Auto Trait Implementations§
impl<'a> Freeze for CompileContext<'a>
impl<'a> RefUnwindSafe for CompileContext<'a>
impl<'a> Send for CompileContext<'a>
impl<'a> Sync for CompileContext<'a>
impl<'a> Unpin for CompileContext<'a>
impl<'a> UnsafeUnpin for CompileContext<'a>
impl<'a> UnwindSafe for CompileContext<'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