pub struct Appender { /* private fields */ }Expand description
A DuckDB appender for bulk-inserting rows into a table. A DuckDB appender for bulk-inserting rows into a table without going through the SQL parser.
Call append for each row and save
to flush the data to the database. Rows are also flushed automatically on drop
(errors during the implicit flush are logged to stderr).
Implementations§
Source§impl Appender
impl Appender
Sourcepub fn new(con: RawConnection, table: &str, schema: &str) -> Result<Appender>
pub fn new(con: RawConnection, table: &str, schema: &str) -> Result<Appender>
Creates a new Appender for the given table and schema.
§Errors
Returns an error if the table does not exist or the DuckDB appender cannot be created.
Trait Implementations§
Auto Trait Implementations§
impl !Send for Appender
impl !Sync for Appender
impl Freeze for Appender
impl RefUnwindSafe for Appender
impl Unpin for Appender
impl UnsafeUnpin for Appender
impl UnwindSafe for Appender
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