pub struct NormalizerOptions {
pub unify_in_list: bool,
pub unify_values: 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 (...).
unify_values: boolUnify VALUES lists to a single form when all elements are literal values.
For example, VALUES (1, 2, 3), (4, 5, 6) becomes VALUES (...).
Implementations§
Source§impl NormalizerOptions
impl NormalizerOptions
pub fn new() -> Self
pub fn with_unify_in_list(self, unify_in_list: bool) -> Self
pub fn with_unify_values(self, unify_values: bool) -> Self
Trait Implementations§
Source§impl Clone for NormalizerOptions
impl Clone for NormalizerOptions
Source§fn clone(&self) -> NormalizerOptions
fn clone(&self) -> NormalizerOptions
Returns a duplicate 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 Freeze for NormalizerOptions
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