pub struct StatementExplain {
pub statement_preview: String,
pub plan: String,
pub estimated_rows: Option<f64>,
pub estimated_cost: Option<f64>,
pub warnings: Vec<String>,
pub is_ddl: bool,
}Expand description
EXPLAIN analysis for a single statement.
Fields§
§statement_preview: StringTruncated preview of the SQL statement (up to 80 characters).
plan: StringFull EXPLAIN output or a status message for DDL statements.
estimated_rows: Option<f64>Estimated number of rows from the query plan, if available.
estimated_cost: Option<f64>Estimated total cost from the query plan, if available.
warnings: Vec<String>Performance warnings derived from the execution plan.
is_ddl: boolWhether this statement is a DDL operation (not explainable).
Trait Implementations§
Source§impl Debug for StatementExplain
impl Debug for StatementExplain
Auto Trait Implementations§
impl Freeze for StatementExplain
impl RefUnwindSafe for StatementExplain
impl Send for StatementExplain
impl Sync for StatementExplain
impl Unpin for StatementExplain
impl UnsafeUnpin for StatementExplain
impl UnwindSafe for StatementExplain
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