pub struct ParsedRow {
pub raw: Vec<u8>,
pub values: Vec<ParsedValue>,
pub pk: Option<PkTuple>,
pub fk_values: Vec<(FkRef, PkTuple)>,
pub all_values: Vec<PkValue>,
pub column_map: Vec<Option<usize>>,
}Expand description
A parsed row from an INSERT statement
Fields§
§raw: Vec<u8>Raw bytes of the row value list: “(val1, val2, …)”
values: Vec<ParsedValue>Parsed values for each column (for bulk loading)
pk: Option<PkTuple>Extracted primary key values (if table has PK and values are non-NULL)
fk_values: Vec<(FkRef, PkTuple)>Extracted foreign key values with their references Only includes FKs where all columns are non-NULL
all_values: Vec<PkValue>All column values (for data diff comparison)
column_map: Vec<Option<usize>>Mapping from schema column index to value index (for finding specific columns) If column_map[schema_col_idx] == Some(val_idx), then all_values[val_idx] is the value
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParsedRow
impl RefUnwindSafe for ParsedRow
impl Send for ParsedRow
impl Sync for ParsedRow
impl Unpin for ParsedRow
impl UnwindSafe for ParsedRow
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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