Expand description
SQL formatter.
Fields
writer: W
The underlying writer.
escape_backslash: bool
Whether to escapes backslashes when writing a string.
Trait Implementations
sourceimpl<W: Write> Format for SqlFormat<W>
impl<W: Write> Format for SqlFormat<W>
sourcefn write_value(&mut self, value: &Value) -> Result<(), Error>
fn write_value(&mut self, value: &Value) -> Result<(), Error>
Writes a single value to the writer, formatted according to specific
rules of this formatter. Read more
sourcefn write_header(&mut self, qualified_table_name: &str) -> Result<(), Error>
fn write_header(&mut self, qualified_table_name: &str) -> Result<(), Error>
Writes the content of an INSERT statement before all rows.
sourcefn write_value_separator(&mut self) -> Result<(), Error>
fn write_value_separator(&mut self) -> Result<(), Error>
Writes the separator between the every value.
sourcefn write_row_separator(&mut self) -> Result<(), Error>
fn write_row_separator(&mut self) -> Result<(), Error>
Writes the separator between the every row.
sourcefn write_trailer(&mut self) -> Result<(), Error>
fn write_trailer(&mut self) -> Result<(), Error>
Writes the content of an INSERT statement after all rows.
Auto Trait Implementations
impl<W> RefUnwindSafe for SqlFormat<W>where
W: RefUnwindSafe,
impl<W> Send for SqlFormat<W>where
W: Send,
impl<W> Sync for SqlFormat<W>where
W: Sync,
impl<W> Unpin for SqlFormat<W>where
W: Unpin,
impl<W> UnwindSafe for SqlFormat<W>where
W: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more