Expand description
PostgreSQL COPY statement parser.
Parses COPY … FROM stdin data blocks to extract individual rows and optionally extract PK/FK column values for dependency tracking.
Re-exports§
pub use super::mysql_insert::PkTuple;
Structs§
- Copy
Parser - Parser for PostgreSQL COPY data blocks
- Parsed
Copy Row - A parsed row from a COPY data block
Functions§
- decode_
copy_ escapes - Decode PostgreSQL COPY escape sequences (
\t,\n,\r,\\; a\Nor unknown escape passes through verbatim). - parse_
copy_ columns - Parse column list from COPY header
- parse_
postgres_ copy_ rows - Parse all rows from a PostgreSQL COPY data block
- parse_
postgres_ copy_ rows_ with - Like
parse_postgres_copy_rows, but with an explicitRowExtractionlevel so consumers that don’t needall_valuesskip that work. - visit_
postgres_ copy_ rows_ with - Stream the rows of a COPY data block to a visitor, one at a time, without
building a block-sized
Vec.freturns aRowFlowto stop early.