pub struct Optimizer { /* private fields */ }Expand description
Query optimizer.
Implementations§
Source§impl Optimizer
impl Optimizer
Sourcepub fn with_config(_config: OptimizerConfig) -> Self
pub fn with_config(_config: OptimizerConfig) -> Self
Create a new optimizer with custom configuration.
Sourcepub fn cost_model(&self) -> &CostModel
pub fn cost_model(&self) -> &CostModel
Get the cost model.
Sourcepub fn optimize(&self, stmt: Statement) -> Result<OptimizedQuery>
pub fn optimize(&self, stmt: Statement) -> Result<OptimizedQuery>
Optimize a query.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Optimizer
impl !RefUnwindSafe for Optimizer
impl Send for Optimizer
impl Sync for Optimizer
impl Unpin for Optimizer
impl UnsafeUnpin for Optimizer
impl UnwindSafe for Optimizer
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> 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