pub struct CopyParser<'a> { /* private fields */ }Expand description
Parser for PostgreSQL COPY data blocks
Implementations§
Source§impl<'a> CopyParser<'a>
impl<'a> CopyParser<'a>
Sourcepub fn with_schema(self, schema: &'a TableSchema) -> Self
pub fn with_schema(self, schema: &'a TableSchema) -> Self
Set the table schema for PK/FK extraction
Sourcepub fn with_column_order(self, columns: Vec<String>) -> Self
pub fn with_column_order(self, columns: Vec<String>) -> Self
Set column order from COPY header
Sourcepub fn parse_rows(&mut self) -> Result<Vec<ParsedCopyRow>>
pub fn parse_rows(&mut self) -> Result<Vec<ParsedCopyRow>>
Parse all rows from the COPY data block
Auto Trait Implementations§
impl<'a> Freeze for CopyParser<'a>
impl<'a> RefUnwindSafe for CopyParser<'a>
impl<'a> Send for CopyParser<'a>
impl<'a> Sync for CopyParser<'a>
impl<'a> Unpin for CopyParser<'a>
impl<'a> UnwindSafe for CopyParser<'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
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