rust-redshift
Rust library for parsing redshift files generated by the UNLOAD command. The UNLOAD command must be executed with the following options: DELIMITER '|' ESCAPE ADDQUOTES
.
Example usage:
// transform redshift file to csv
// parse redshift file from stdin
let mut redshift_reader = new;
// create a writer to stdout
let mut csv_writer = from_writer;
// write out each record
for row in redshift_reader
redshift2csv
The above example is included as an executable redshift2csv
. Usage:
redshift2csv < redshiftfile > redshiftfile.csv