pub struct QueryPlanVisualizer {
pub show_costs: bool,
pub show_execution_times: bool,
pub show_metadata: bool,
pub colors: HashMap<String, String>,
}Expand description
Query plan visualizer
Fields§
§show_costs: boolShow costs in visualization
show_execution_times: boolShow execution times in visualization
show_metadata: boolShow metadata in visualization
colors: HashMap<String, String>Color scheme for different node types
Implementations§
Source§impl QueryPlanVisualizer
impl QueryPlanVisualizer
Sourcepub fn with_costs(self, show: bool) -> Self
pub fn with_costs(self, show: bool) -> Self
Enable cost display
Sourcepub fn with_execution_times(self, show: bool) -> Self
pub fn with_execution_times(self, show: bool) -> Self
Enable execution time display
Sourcepub fn with_metadata(self, show: bool) -> Self
pub fn with_metadata(self, show: bool) -> Self
Enable metadata display
Sourcepub fn visualize(
&self,
plan: &QueryPlan,
format: VisualizationFormat,
) -> Result<String, VisualizationError>
pub fn visualize( &self, plan: &QueryPlan, format: VisualizationFormat, ) -> Result<String, VisualizationError>
Visualize a query plan
Sourcepub fn generate_timeline(&self, plan: &QueryPlan) -> String
pub fn generate_timeline(&self, plan: &QueryPlan) -> String
Generate execution timeline
Sourcepub fn generate_cost_breakdown(&self, plan: &QueryPlan) -> String
pub fn generate_cost_breakdown(&self, plan: &QueryPlan) -> String
Generate cost breakdown
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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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