pub struct UnifiedPlanExecutor<'engine, 'params, S: Clone + 'static> { /* private fields */ }Expand description
Owns top-level plan orchestration. Relational, mutation, DDL, procedural, and prepared-plan execution all enter through this exhaustive dispatcher; leaf executors never choose a second top-level SQL path.
Implementations§
Source§impl<S: Clone + Send + Sync + 'static> UnifiedPlanExecutor<'_, '_, S>
impl<S: Clone + Send + Sync + 'static> UnifiedPlanExecutor<'_, '_, S>
pub fn execute_for_output( &mut self, plan: &UnifiedPlan, ) -> Result<StatementOutput, SQLError>
pub fn execute(&mut self, plan: &UnifiedPlan) -> Result<SQLResult, SQLError>
Source§impl<'engine, 'params, S: Clone + Send + Sync + 'static> UnifiedPlanExecutor<'engine, 'params, S>
impl<'engine, 'params, S: Clone + Send + Sync + 'static> UnifiedPlanExecutor<'engine, 'params, S>
pub fn new( context: StatementExecutionContext<'engine, S>, params: &'params [SQLParam], ) -> Self
pub fn new_nested( context: StatementExecutionContext<'engine, S>, params: &'params [SQLParam], ) -> Self
pub fn with_nested_statement( context: StatementExecutionContext<'engine, S>, params: &'params [SQLParam], nested_statement: bool, ) -> Self
pub fn with_privilege_subject(self, subject: &RoleReference) -> Self
pub fn with_inherited_ctes(self, parent: Option<&CteScope<S>>) -> Self
pub fn with_source_sql(self, sql: &str) -> Self
pub fn with_optional_source_sql(self, sql: Option<&str>) -> Self
pub fn execute_query_to_spill( &self, plan: &UnifiedPlan, ) -> Result<QueryOutput, SQLError>
Auto Trait Implementations§
impl<'engine, 'params, S> !RefUnwindSafe for UnifiedPlanExecutor<'engine, 'params, S>
impl<'engine, 'params, S> !Send for UnifiedPlanExecutor<'engine, 'params, S>
impl<'engine, 'params, S> !Sync for UnifiedPlanExecutor<'engine, 'params, S>
impl<'engine, 'params, S> !UnwindSafe for UnifiedPlanExecutor<'engine, 'params, S>
impl<'engine, 'params, S> Freeze for UnifiedPlanExecutor<'engine, 'params, S>
impl<'engine, 'params, S> Unpin for UnifiedPlanExecutor<'engine, 'params, S>
impl<'engine, 'params, S> UnsafeUnpin for UnifiedPlanExecutor<'engine, 'params, 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