Trait dbgen::format::Format

source ·
pub trait Format {
    fn write_value(&mut self, value: &Value) -> Result<(), Error>;
    fn write_header(&mut self, qualified_table_name: &str) -> Result<(), Error>;
    fn write_value_separator(&mut self) -> Result<(), Error>;
    fn write_row_separator(&mut self) -> Result<(), Error>;
    fn write_trailer(&mut self) -> Result<(), Error>;
}
Expand description

Wrapper of a writer which could serialize a value into a string.

Required Methods

Writes a single value to the writer, formatted according to specific rules of this formatter.

Writes the content of an INSERT statement before all rows.

Writes the separator between the every value.

Writes the separator between the every row.

Writes the content of an INSERT statement after all rows.

Implementors