pub struct BulkInsert<'a> {
pub table: &'a str,
pub columns: &'a [ColumnInfo],
pub rows: &'a [Row],
pub copy_format: CopyFormat,
}Expand description
Payload for Connection::bulk_insert_rows.
table is unquoted — each backend is responsible for quoting it
for its own dialect. columns is the destination column order;
each row in rows must have the same length and match positionally.
copy_format is consulted only by the Postgres backend and selects
between COPY … WITH (FORMAT TEXT) and COPY … WITH (FORMAT BINARY).
All other backends ignore the field — their bulk paths use a
protocol-native wire format (TDS, MySQL LOAD DATA, ODPI-C array
DML).
Fields§
§table: &'a str§columns: &'a [ColumnInfo]§rows: &'a [Row]§copy_format: CopyFormatTrait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for BulkInsert<'a>
impl<'a> RefUnwindSafe for BulkInsert<'a>
impl<'a> Send for BulkInsert<'a>
impl<'a> Sync for BulkInsert<'a>
impl<'a> Unpin for BulkInsert<'a>
impl<'a> UnsafeUnpin for BulkInsert<'a>
impl<'a> UnwindSafe for BulkInsert<'a>
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