pub struct Appender<'conn> { /* fields omitted */ }
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
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.