pub struct QueryPlanVisualizer { /* private fields */ }Expand description
Query plan visualizer with multiple output formats
Implementations§
Source§impl QueryPlanVisualizer
impl QueryPlanVisualizer
Sourcepub fn with_stats(self, show: bool) -> Self
pub fn with_stats(self, show: bool) -> Self
Enable/disable statistics display
Sourcepub fn with_costs(self, show: bool) -> Self
pub fn with_costs(self, show: bool) -> Self
Enable/disable cost display
Sourcepub fn with_indexes(self, show: bool) -> Self
pub fn with_indexes(self, show: bool) -> Self
Enable/disable index display
Sourcepub fn with_cardinality(self, show: bool) -> Self
pub fn with_cardinality(self, show: bool) -> Self
Enable/disable cardinality display
Sourcepub fn visualize_as_tree(&self, plan: &QueryPlanNode) -> String
pub fn visualize_as_tree(&self, plan: &QueryPlanNode) -> String
Visualize query plan as ASCII tree
Sourcepub fn export_as_json(&self, plan: &QueryPlanNode) -> Result<String>
pub fn export_as_json(&self, plan: &QueryPlanNode) -> Result<String>
Export query plan as JSON
Sourcepub fn generate_summary(&self, plan: &QueryPlanNode) -> QueryPlanSummary
pub fn generate_summary(&self, plan: &QueryPlanNode) -> QueryPlanSummary
Generate execution summary
Sourcepub fn suggest_optimizations(
&self,
plan: &QueryPlanNode,
) -> Vec<OptimizationHint>
pub fn suggest_optimizations( &self, plan: &QueryPlanNode, ) -> Vec<OptimizationHint>
Identify potential optimizations
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueryPlanVisualizer
impl RefUnwindSafe for QueryPlanVisualizer
impl Send for QueryPlanVisualizer
impl Sync for QueryPlanVisualizer
impl Unpin for QueryPlanVisualizer
impl UnsafeUnpin for QueryPlanVisualizer
impl UnwindSafe for QueryPlanVisualizer
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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