export-to-csv adaptor exports a datatable to a CSV file.
Exports a datatable as a file with a specified delimiter (CSV, TSV, etc.), which allows for downstream use of the processed data for applications outside of Data-flo.
data
Type: datatable
Required: Yes
The datatable to be exported.
delimiter
Type: text
Required: No
Character used as column delimiter. Defaults to "," (comma).
columns
Type: list
Required: No
A list of columns to be exported to the CSV file. If unspecified, all columns will be exported.
output file name
Type: text
Required: No
The name of the output file. If unspecified, defaults to data.csv.
file
Type: file
A file in CSV format.
Example 1: Default behaviour.
data:
delimiter: null (empty)
columns: null (empty)
output file name: null (empty)
file: data.csv
-> Exported datatable to the CSV file data.csv.
Example 2: Export datatable with a specified delimiter and file name.
data:
delimiter: ;
columns: null (empty)
output file name: country.csv
file: country.csv
-> Exported datatable to the CSV file country.csv with ;(semicolon) as the delimiter.
Example 3: Export only selected columns.
data:
delimiter: ,
columns:
output file name: country.csv
file: country.csv
-> Exported columns id and name from the datatable to the CSV file country.csv.