pub struct PlannedStatement {
pub plan: LogicalPlan,
pub routing_input: RoutingInput,
}Expand description
Planning output used by server-side routing analysis.
This is intentionally owned by alopex-sql and contains no
alopex-cluster types. Cluster routing layers can translate this DTO into
their own routing model without making SQL depend on cluster metadata.
Fields§
§plan: LogicalPlanLogical plan produced by the regular SQL planner.
routing_input: RoutingInputSQL-owned routing input derived during planning.
Implementations§
Source§impl PlannedStatement
impl PlannedStatement
Sourcepub fn statement_kind(&self) -> &StatementKind
pub fn statement_kind(&self) -> &StatementKind
Statement kind associated with this plan.
Sourcepub fn table_references(&self) -> &[TableReference]
pub fn table_references(&self) -> &[TableReference]
Table references extracted for routing analysis.
Sourcepub fn diagnostics(&self) -> &[PlanningDiagnostic]
pub fn diagnostics(&self) -> &[PlanningDiagnostic]
Planning diagnostics available for routing layers to attach to their own decision diagnostics.
Trait Implementations§
Source§impl Clone for PlannedStatement
impl Clone for PlannedStatement
Source§fn clone(&self) -> PlannedStatement
fn clone(&self) -> PlannedStatement
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 PlannedStatement
impl RefUnwindSafe for PlannedStatement
impl Send for PlannedStatement
impl Sync for PlannedStatement
impl Unpin for PlannedStatement
impl UnsafeUnpin for PlannedStatement
impl UnwindSafe for PlannedStatement
Blanket Implementations§
impl<T> Allocation for T
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