pub struct PreparedStatementPlan {Show 16 fields
pub source_plan: Arc<UnifiedPlan>,
pub logical_plan: Arc<UnifiedPlan>,
pub needs_analysis: bool,
pub effective_search_path: Option<EffectiveSearchPath>,
pub dependencies: PreparedAnalysisDependencies,
pub dependency_snapshot: Option<PreparedDependencySnapshot>,
pub plan: Option<UnifiedPlan>,
pub parameter_types: Vec<Option<ColumnType>>,
pub result_schema: Option<RowSchema>,
pub source_sql: Option<Arc<str>>,
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§
§source_plan: Arc<UnifiedPlan>Original input syntax, retained for parse analysis after invalidation.
logical_plan: Arc<UnifiedPlan>§needs_analysis: bool§effective_search_path: Option<EffectiveSearchPath>The effective namespace of the retained analysis, when its catalog supplies one.
dependencies: PreparedAnalysisDependencies§dependency_snapshot: Option<PreparedDependencySnapshot>§plan: Option<UnifiedPlan>§parameter_types: Vec<Option<ColumnType>>§result_schema: Option<RowSchema>§source_sql: Option<Arc<str>>§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
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