pub struct QueryDebugger { /* private fields */ }Expand description
Query debugger for managing execution plans
Implementations§
Source§impl QueryDebugger
impl QueryDebugger
Sourcepub fn start_query(
&mut self,
query_id: String,
query_text: String,
variables: HashMap<String, String>,
) -> String
pub fn start_query( &mut self, query_id: String, query_text: String, variables: HashMap<String, String>, ) -> String
Start debugging a query
Sourcepub fn add_step(&mut self, query_id: &str, step_type: StepType) -> Option<usize>
pub fn add_step(&mut self, query_id: &str, step_type: StepType) -> Option<usize>
Add a step to a query’s execution plan
Sourcepub fn start_step(&mut self, query_id: &str, step_id: usize)
pub fn start_step(&mut self, query_id: &str, step_id: usize)
Start a step
Sourcepub fn complete_step(
&mut self,
query_id: &str,
step_id: usize,
output: Option<String>,
)
pub fn complete_step( &mut self, query_id: &str, step_id: usize, output: Option<String>, )
Complete a step
Sourcepub fn finalize_query(&mut self, query_id: &str)
pub fn finalize_query(&mut self, query_id: &str)
Finalize a query execution plan
Sourcepub fn get_plan(&self, query_id: &str) -> Option<&ExecutionPlan>
pub fn get_plan(&self, query_id: &str) -> Option<&ExecutionPlan>
Get an execution plan
Sourcepub fn get_all_plans(&self) -> Vec<&ExecutionPlan>
pub fn get_all_plans(&self) -> Vec<&ExecutionPlan>
Get all execution plans
Sourcepub fn get_summary(&self, query_id: &str) -> Option<ExecutionSummary>
pub fn get_summary(&self, query_id: &str) -> Option<ExecutionSummary>
Get execution summary for a query
Sourcepub fn plan_count(&self) -> usize
pub fn plan_count(&self) -> usize
Get plan count
Sourcepub fn generate_report(&self) -> String
pub fn generate_report(&self) -> String
Generate report for all plans
Auto Trait Implementations§
impl Freeze for QueryDebugger
impl RefUnwindSafe for QueryDebugger
impl Send for QueryDebugger
impl Sync for QueryDebugger
impl Unpin for QueryDebugger
impl UnsafeUnpin for QueryDebugger
impl UnwindSafe for QueryDebugger
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