You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "Use a SQL query to get data from CSV data",
key: "sql_query_csv",
version: "0.1.1",
type: "action",
props: {
csv_inputs: {
type: "string[]",
label: "CSV inputs",
description: "The CSV data to use in the SQL Query (one for each `?` in query)"
},
csv_inputs_have_header: {
type: "boolean[]",
label: "CSV inputs have header row?",
description: "Whether the CSV data inputs have header rows (one boolean per CSV input). If so, the data rows' data will be keyed on field names instead of indexes.",
},
sql_query: {
type: "string",
label: "SQL query",
description: "The SQL query to run against the provided CSV data. Use a question mark (?) for where you want to use each CSV input (e.g as the table name), in order. Documentation: https://github.com/AlaSQL/alasql/wiki/Alasql-Object",
},
},
async run({ steps, $ }) {
let csvDataForQuery = []
for (let i = 0; i < this.csv_inputs.length; i++) {