pub struct OptimizerContext { /* private fields */ }Implementations§
Source§impl OptimizerContext
impl OptimizerContext
pub fn from_config(optimizer_config: OptimizerConfig) -> OptimizerContext
pub fn with_normalized_query( self, normalized_query: impl Into<String>, ) -> OptimizerContext
pub fn with_query_identity( self, normalized_query: impl Into<String>, query_digest: impl Into<String>, ) -> OptimizerContext
pub fn with_query_family(self, query_family: QueryFamily) -> OptimizerContext
pub fn with_resource_hints( self, resource_hints: ResourceHints, ) -> OptimizerContext
pub fn with_explain_mode(self, explain_mode: ExplainMode) -> OptimizerContext
pub fn with_trace_sink(self, trace_sink: TraceSink) -> OptimizerContext
pub fn normalized_query(&self) -> Option<&str>
pub fn query_digest(&self) -> Option<&str>
pub fn query_family(&self) -> QueryFamily
pub fn statement_class(&self) -> StatementClass
pub fn resource_hints(&self) -> &ResourceHints
pub fn explain_mode(&self) -> ExplainMode
pub fn trace_sink(&self) -> TraceSink
pub fn optimizer_config(&self) -> &OptimizerConfig
Trait Implementations§
Source§impl Clone for OptimizerContext
impl Clone for OptimizerContext
Source§fn clone(&self) -> OptimizerContext
fn clone(&self) -> OptimizerContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OptimizerContext
impl Debug for OptimizerContext
Source§impl Default for OptimizerContext
impl Default for OptimizerContext
Source§fn default() -> OptimizerContext
fn default() -> OptimizerContext
Returns the “default value” for a type. Read more
impl Eq for OptimizerContext
Source§impl PartialEq for OptimizerContext
impl PartialEq for OptimizerContext
impl StructuralPartialEq for OptimizerContext
Auto Trait Implementations§
impl Freeze for OptimizerContext
impl RefUnwindSafe for OptimizerContext
impl Send for OptimizerContext
impl Sync for OptimizerContext
impl Unpin for OptimizerContext
impl UnsafeUnpin for OptimizerContext
impl UnwindSafe for OptimizerContext
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