pub struct Appender<'conn> { /* private fields */ }
Expand description
Appender for fast import data
Append multiple rows from Iterator
fn insert_rows(conn: &Connection) -> Result<()> {
let mut app = conn.appender("foo")?;
app.append_rows([[1, 2], [3, 4], [5, 6], [7, 8], [9, 10]])?;
Ok(())
}
Will return Err
if append column count not the same with the table schema
Append one row
fn insert_row(conn: &Connection) -> Result<()> {
let mut app = conn.appender("foo")?;
app.append_row([1, 2])?;
Ok(())
}
Will return Err
if append column count not the same with the table schema
Formats the value using the given formatter.
Read more
Executes the destructor for this type.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.