pub struct SubqueryExecutor { /* private fields */ }Expand description
Executes subqueries within a SQL statement
Implementations§
Source§impl SubqueryExecutor
impl SubqueryExecutor
Sourcepub fn new(query_engine: QueryEngine, source_table: Arc<DataTable>) -> Self
pub fn new(query_engine: QueryEngine, source_table: Arc<DataTable>) -> Self
Create a new subquery executor
Sourcepub fn with_cte_context(
query_engine: QueryEngine,
source_table: Arc<DataTable>,
cte_context: HashMap<String, Arc<DataView>>,
) -> Self
pub fn with_cte_context( query_engine: QueryEngine, source_table: Arc<DataTable>, cte_context: HashMap<String, Arc<DataView>>, ) -> Self
Create a new subquery executor with CTE context
Sourcepub fn execute_subqueries(
&mut self,
statement: &SelectStatement,
) -> Result<SelectStatement>
pub fn execute_subqueries( &mut self, statement: &SelectStatement, ) -> Result<SelectStatement>
Execute all subqueries in a statement and return a modified statement with subqueries replaced by their results
Auto Trait Implementations§
impl Freeze for SubqueryExecutor
impl !RefUnwindSafe for SubqueryExecutor
impl Send for SubqueryExecutor
impl Sync for SubqueryExecutor
impl Unpin for SubqueryExecutor
impl !UnwindSafe for SubqueryExecutor
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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