pub struct PreparedPlan {
pub stmt: Statement,
pub statistics_version: u64,
pub source_tables: Vec<String>,
pub describe_columns: Vec<ColumnSchema>,
}Expand description
One cached plan. The cached stmt is the same one
Engine::prepare() would return — parse + clock rewrite +
ORDER-BY position resolution + JOIN reorder all already applied.
Fields§
§stmt: Statement§statistics_version: u64Statistics version snapshot at prepare time. v6.3.1 compares this against the live statistics version and evicts on mismatch. v6.3.0 stores it but doesn’t consult on lookup.
source_tables: Vec<String>Tables referenced by stmt (deduplicated, lexical order).
v6.3.1 uses this for selective DDL/ANALYZE invalidation.
describe_columns: Vec<ColumnSchema>Column shape v6.3.3 will populate for Describe statement.
v6.3.0 leaves this empty.
Trait Implementations§
Source§impl Clone for PreparedPlan
impl Clone for PreparedPlan
Source§fn clone(&self) -> PreparedPlan
fn clone(&self) -> PreparedPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PreparedPlan
impl RefUnwindSafe for PreparedPlan
impl Send for PreparedPlan
impl Sync for PreparedPlan
impl Unpin for PreparedPlan
impl UnsafeUnpin for PreparedPlan
impl UnwindSafe for PreparedPlan
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