pub struct PreparedStatementPlan {Show 18 fields
pub definition_identity: Arc<()>,
pub composite_inputs: CompositeInputs,
pub source_plan: SharedExecutablePlan,
pub logical_plan: SharedExecutablePlan,
pub needs_analysis: bool,
pub effective_search_path: SharedPreparedInput<Option<EffectiveSearchPath>>,
pub dependencies: SharedPreparedInput<PreparedAnalysisDependencies>,
pub dependency_snapshot: SharedPreparedInput<Option<PreparedDependencySnapshot>>,
pub plan: Option<SharedExecutablePlan>,
pub parameter_types: SharedPreparedInput<Vec<Option<ColumnType>>>,
pub result_schema: Option<RowSchema>,
pub source_sql: Option<SharedPreparedInput<String>>,
pub prepared_at_micros: i64,
pub from_sql: bool,
pub generic_plans: i64,
pub custom_plans: i64,
pub generic_cost: Option<f64>,
pub total_custom_cost: f64,
}Fields§
§definition_identity: Arc<()>Stable registration identity, independent of executable storage and reanalysis. Weak host handles retain no admitted plan payload.
composite_inputs: CompositeInputs§source_plan: SharedExecutablePlanOriginal input syntax, retained for parse analysis after invalidation.
logical_plan: SharedExecutablePlan§needs_analysis: bool§effective_search_path: SharedPreparedInput<Option<EffectiveSearchPath>>The effective namespace of the retained analysis, when its catalog supplies one.
dependencies: SharedPreparedInput<PreparedAnalysisDependencies>§dependency_snapshot: SharedPreparedInput<Option<PreparedDependencySnapshot>>§plan: Option<SharedExecutablePlan>Immutable generic executable shared by the cache and its active executions.
parameter_types: SharedPreparedInput<Vec<Option<ColumnType>>>§result_schema: Option<RowSchema>§source_sql: Option<SharedPreparedInput<String>>§prepared_at_micros: i64§from_sql: bool§generic_plans: i64§custom_plans: i64§generic_cost: Option<f64>§total_custom_cost: f64Implementations§
Source§impl PreparedStatementPlan
impl PreparedStatementPlan
Sourcepub fn has_tracked_executable_dependencies(&self) -> bool
pub fn has_tracked_executable_dependencies(&self) -> bool
Primitive expressions and selected fixed builtins can retain their executable across an unrelated registry refresh. Relations require exact analysis revisions, checked before every plan selection; surviving calls still check current execution privileges.
Source§impl PreparedStatementPlan
impl PreparedStatementPlan
pub fn metadata(&self, name: &str) -> PreparedStatementMetadata
Source§impl PreparedStatementPlan
impl PreparedStatementPlan
Sourcepub fn record_analysis<P: Into<SharedExecutablePlan>>(
&mut self,
definition: PreparedDefinition<P>,
)
pub fn record_analysis<P: Into<SharedExecutablePlan>>( &mut self, definition: PreparedDefinition<P>, )
Publish successful descriptor reanalysis without counting a plan execution.
pub fn invalidate(&mut self)
pub fn record_execution(&mut self, update: PreparedPlanUpdate)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PreparedStatementPlan
impl !UnwindSafe for PreparedStatementPlan
impl Freeze for PreparedStatementPlan
impl Send for PreparedStatementPlan
impl Sync for PreparedStatementPlan
impl Unpin for PreparedStatementPlan
impl UnsafeUnpin for PreparedStatementPlan
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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