pub struct SubqueryContext<'a, S: Clone + 'static> {
pub services: SubqueryServices<'a, S>,
pub memory: &'a dyn QueryMemorySettings,
pub ctes: &'a CteScope<S>,
pub function_hook: &'a dyn EngineHook,
pub subquery_runner: &'a dyn PhysicalSubqueryRunner,
}Fields§
§services: SubqueryServices<'a, S>§memory: &'a dyn QueryMemorySettings§ctes: &'a CteScope<S>§function_hook: &'a dyn EngineHook§subquery_runner: &'a dyn PhysicalSubqueryRunnerTrait Implementations§
Source§impl<S: Clone + Send + Sync + 'static> PhysicalSubqueryRunner for SubqueryContext<'_, S>
impl<S: Clone + Send + Sync + 'static> PhysicalSubqueryRunner for SubqueryContext<'_, S>
fn execute_subquery( &self, subquery: usize, plan: &QueryPlan, outer_row: PhysicalOuterRow<'_>, params: &[SQLParam], ) -> Result<SubqueryResult, SQLError>
fn row_subquery_value( &self, subquery: usize, plan: &QueryPlan, outer_row: PhysicalOuterRow<'_>, params: &[SQLParam], ) -> Result<Option<OwnedPhysicalRow>, SQLError>
fn scalar_subquery_value( &self, subquery: usize, plan: &QueryPlan, outer_row: PhysicalOuterRow<'_>, params: &[SQLParam], ) -> Result<Value, SQLError>
fn subquery_exists( &self, subquery: usize, plan: &QueryPlan, outer_row: PhysicalOuterRow<'_>, params: &[SQLParam], ) -> Result<bool, SQLError>
fn subquery_contains( &self, subquery: usize, plan: &QueryPlan, needle: &Value, outer_row: PhysicalOuterRow<'_>, params: &[SQLParam], ) -> Result<Option<bool>, SQLError>
fn subquery_contains_selected( &self, subquery: usize, plan: &QueryPlan, needle: SubqueryNeedle<'_>, outer_row: PhysicalOuterRow<'_>, params: &[SQLParam], ) -> Result<Option<bool>, SQLError>
Auto Trait Implementations§
impl<'a, S> !RefUnwindSafe for SubqueryContext<'a, S>
impl<'a, S> !Send for SubqueryContext<'a, S>
impl<'a, S> !Sync for SubqueryContext<'a, S>
impl<'a, S> !UnwindSafe for SubqueryContext<'a, S>
impl<'a, S> Freeze for SubqueryContext<'a, S>
impl<'a, S> Unpin for SubqueryContext<'a, S>
impl<'a, S> UnsafeUnpin for SubqueryContext<'a, S>
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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