Struct sql_insight::normalizer::NormalizerOptions
source · pub struct NormalizerOptions {
pub unify_in_list: bool,
}Expand description
Options for normalizing SQL.
Fields§
§unify_in_list: boolUnify IN lists to a single form when all elements are literal values.
For example, IN (1, 2, 3) becomes IN (...).
Implementations§
source§impl NormalizerOptions
impl NormalizerOptions
pub fn new() -> Self
pub fn with_unify_in_list(self, unify_in_list: bool) -> Self
Trait Implementations§
source§impl Clone for NormalizerOptions
impl Clone for NormalizerOptions
source§fn clone(&self) -> NormalizerOptions
fn clone(&self) -> NormalizerOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for NormalizerOptions
impl Default for NormalizerOptions
source§fn default() -> NormalizerOptions
fn default() -> NormalizerOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for NormalizerOptions
impl Send for NormalizerOptions
impl Sync for NormalizerOptions
impl Unpin for NormalizerOptions
impl UnwindSafe for NormalizerOptions
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