Skip to main content

Module values_parser

Module values_parser 

Source

Functionsยง

parse_copy_data
Parse PostgreSQL COPY data block. Input: the full COPY statement + data + \. terminator. Format: COPY table FROM stdin;\nval1\tval2\n...\n\.\n Returns: Vec of rows with tab-separated values.
parse_insert_values
Parse the VALUES portion of an INSERT statement. Input: the full INSERT statement bytes, e.g. INSERT INTO table VALUES (1,'hello',NULL),(2,'world',3.14); Returns: Vec of rows, where each row is Vec.