pub struct ExplainPlan { /* private fields */ }Expand description
ExplainPlan
Stable, deterministic representation of a planned query for observability.
Implementations§
Source§impl ExplainPlan
impl ExplainPlan
Sourcepub const fn access_decision(&self) -> &ExplainAccessDecision
pub const fn access_decision(&self) -> &ExplainAccessDecision
Borrow the structured planner access-decision projection.
Sourcepub fn filter_expr(&self) -> Option<&str>
pub fn filter_expr(&self) -> Option<&str>
Borrow projected semantic scalar filter expression when present.
Sourcepub const fn order_pushdown(&self) -> &ExplainOrderPushdown
pub const fn order_pushdown(&self) -> &ExplainOrderPushdown
Borrow projected ORDER pushdown status.
Sourcepub const fn delete_limit(&self) -> &ExplainDeleteLimit
pub const fn delete_limit(&self) -> &ExplainDeleteLimit
Borrow projected delete-limit status.
Sourcepub const fn consistency(&self) -> MissingRowPolicy
pub const fn consistency(&self) -> MissingRowPolicy
Return missing-row consistency policy.
Source§impl ExplainPlan
impl ExplainPlan
Sourcepub fn render_text_canonical(&self) -> Result<String, QueryError>
pub fn render_text_canonical(&self) -> Result<String, QueryError>
Render this logical explain plan as deterministic canonical text.
Output is limited to 1 MiB of UTF-8 bytes per call. Limit or formatter failure returns an error, never partial text. This detached operation does not charge a session, bound prior planning, or redact values. Access operands and predicate/HAVING trees are summarized, not dumped. Existing clause labels can still contain literal values.
Sourcepub fn render_json_canonical(&self) -> Result<String, QueryError>
pub fn render_json_canonical(&self) -> Result<String, QueryError>
Render this logical explain plan as canonical JSON.
Output is limited to 1 MiB of UTF-8 bytes, including JSON escaping. Failure returns no partial JSON. This detached operation does not charge a session, bound prior planning, or redact values. Access operands and predicate/HAVING trees are summarized, not dumped. Existing clause labels can still contain literal values.