Skip to main content

Query a CSV using SQL

Query a CSV using SQL. Wrk Action uses SQLite syntax.

SQLLite Documentation: https://www.sqlite.org/docs.html

Application

  • CSV

Inputs (what you have)

NameDescriptionData TypeRequired?Example
CSV fileCSV file you would like to query using SQLFileYes
SQL queryA SQL query to perform on the provided CSV. Your primary table will always be referenced as CSV. Example: Select * from CSVText (Long)YesSelect * from CSV
Columns do not have headers?If selected, the headers will be referred to as Col1, Col2, etcTrue/FalseNo
SeparatorThe character used to separate columns in the CSV. Will default to ,Text (Short)No,
Quote characterThe characters used to indicate a string in the CSV. Will default to “Text (Short)No
Output filenameOptional custom filename for the output CSV fileText(Long)Nosample.csv

Outputs (what you get)

NameDescriptionData TypeRequired?Example
Output CSVOutput CSV fileFileYes

Outcomes

NameDescription
SuccessThis status is selected if the job has successfully completed.

Examples:

  • Examples to come