pub enum UnifiedRow {
Insert(ParsedRow),
Copy(ParsedCopyRow),
}Expand description
Combined row representation for both MySQL INSERT and PostgreSQL COPY.
Variants§
Insert(ParsedRow)
Copy(ParsedCopyRow)
Implementations§
Source§impl UnifiedRow
impl UnifiedRow
pub fn pk(&self) -> Option<&PkTuple>
pub fn fk_values(&self) -> &[(FkRef, PkTuple)]
Sourcepub fn get_column_value(&self, idx: usize) -> Option<&PkValue>
pub fn get_column_value(&self, idx: usize) -> Option<&PkValue>
Get the value for a specific schema column index (requires
RowExtraction::Full parsing).
pub fn format(&self) -> RowFormat
pub fn raw(&self) -> &[u8] ⓘ
Auto Trait Implementations§
impl Freeze for UnifiedRow
impl RefUnwindSafe for UnifiedRow
impl Send for UnifiedRow
impl Sync for UnifiedRow
impl Unpin for UnifiedRow
impl UnsafeUnpin for UnifiedRow
impl UnwindSafe for UnifiedRow
Blanket Implementations§
impl<T> Allocation for T
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