pub struct InsertBatch {
pub table: String,
pub columns: Option<Vec<String>>,
pub rows: Vec<Vec<ParsedValue>>,
pub statements: Vec<String>,
pub rows_per_statement: Vec<usize>,
}Expand description
A batch of rows for a single table
Fields§
§table: StringTarget table name
columns: Option<Vec<String>>Column list if explicitly specified
rows: Vec<Vec<ParsedValue>>Accumulated rows (each row is a Vec of ParsedValue)
statements: Vec<String>Original SQL statements for fallback execution
rows_per_statement: Vec<usize>Number of rows contributed by each statement
Implementations§
Source§impl InsertBatch
impl InsertBatch
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InsertBatch
impl RefUnwindSafe for InsertBatch
impl Send for InsertBatch
impl Sync for InsertBatch
impl Unpin for InsertBatch
impl UnwindSafe for InsertBatch
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more