Expand description
Convert PostgreSQL COPY FROM stdin statements to INSERT statements.
Handles:
- Tab-separated value parsing
- NULL handling (\N → NULL)
- Escape sequence conversion (\t, \n, \)
- Batched INSERT generation for efficiency
Structs§
- Copy
Header - Result of parsing a COPY header
Enums§
- Copy
Value - A parsed value from COPY data
Functions§
- copy_
to_ inserts - Convert a COPY data block to INSERT statements
- parse_
copy_ data - Parse COPY data block into rows of values
- parse_
copy_ header - Parse a COPY header to extract table and columns Input: “COPY schema.table (col1, col2) FROM stdin;”