Takes two parameters, CSVData, bNoHeaders


Data, bHasHeader
Data, ["y"]


Given the CSV data from any source in a TopQuery field, it is parsed into the WorkQuery using CRLF characters for Records and commas for Fields.

The WS on this command denotes that it parses whitespace and quotes within quoted fields correctly. There is a performance overhead from handling this, but the tradeoff should be accepted for all general purpose use cases. If the data will only ever come from a trusted source and these aspects are not required, consider using the CsvStream command.

When loading a file instead of any other source, in most cases you want to use either LoadCsvFile or LoadCsvFileWS instead.


CsvStreamWS MyData