pub struct ParsedCopyRow {
pub raw: Vec<u8>,
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 a COPY data block
Fields§
§raw: Vec<u8>Raw bytes of the row (tab-separated values, no newline)
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
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)
Implementations§
Source§impl ParsedCopyRow
impl ParsedCopyRow
Sourcepub fn get_column_value(&self, schema_col_index: usize) -> Option<&PkValue>
pub fn get_column_value(&self, schema_col_index: usize) -> Option<&PkValue>
Get the value for a specific schema column index
Trait Implementations§
Source§impl Clone for ParsedCopyRow
impl Clone for ParsedCopyRow
Source§fn clone(&self) -> ParsedCopyRow
fn clone(&self) -> ParsedCopyRow
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ParsedCopyRow
impl RefUnwindSafe for ParsedCopyRow
impl Send for ParsedCopyRow
impl Sync for ParsedCopyRow
impl Unpin for ParsedCopyRow
impl UnwindSafe for ParsedCopyRow
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