pub struct Formatter { /* private fields */ }Expand description
format sql with multiple options
Implementations§
Source§impl Formatter
impl Formatter
pub fn new(stack: FilterStack) -> Self
Sourcepub fn format(&mut self, sql: &str, options: &mut FormatOption<'_>) -> String
pub fn format(&mut self, sql: &str, options: &mut FormatOption<'_>) -> String
do not use this function repeatly
pub fn build_filters(&mut self, options: &mut FormatOption<'_>)
pub fn format_sql(&mut self, sql: &str, options: &FormatOption<'_>) -> String
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Formatter
impl !RefUnwindSafe for Formatter
impl Send for Formatter
impl !Sync for Formatter
impl Unpin for Formatter
impl !UnwindSafe for Formatter
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