Functions13 public, 1 private

Converts the specified CSV document to a query object.
publicanycsvToQuery
Path or content of the CSV file.
requiredstringcsv
Single character only!
stringdelimiter,
booleanhasColumnHeadertrue
structOPTIONS{}
optionstringquote"
consider meta directives such as specifying the separator within the CSV
optionbooleanmetaDirectivestrue
option"ARRAY", "QUERY"returnTypeQUERY
Retrieves all chained rows within the provided query using the specified selector. This method requires ordered rows to perform correctly.
publicarraygetQueryValueChain
Query to extract the chain from.
requiredquerysource
Key to consider for the chain.
requiredstringselectorKey
Value of the key to match against for the chaining.
requiredstringfilterValue
Corresponding key(s) of the matching row within the chain.
requiredstring<>desiredKey
If you need to call this function more than once on the same source query, increment this value.
numericinstance1
Retrieves all rows within the provided query using the specified selector. This method doesn't require ordered rows, but performs slower than [getQueryValueChain].
publicarraygetQueryValues
Query to extract the values from.
requiredquerysource
Key to consider for the values.
requiredstringselectorKey
Value of the key to match against.
requiredstringfilterValue
Corresponding key(s) of the matching row within the chain.
requiredstring<>desiredKey
publicqueryqueryAppend
requiredqueryqA
requiredqueryqB
publicqueryqueryFromArrayOfStructs
requiredstruct, struct[]data
Returns all column names of the provided query.
publicarrayqueryGetColumns
requiredqueryquery
Prints the source code of the provided query resultset.
publicstringqueryPrintSourceCode
requiredqueryq
Variable to print.
stringvarquery
Deletes the specified row or range of rows in the provided query.
publicvoidqueryDeleteRow
requiredqueryquery
requirednumericrow
numericrange1
Converts the specified row of the provided query to a struct with its columns as keys.
publicstructqueryRowToStruct
requiredqueryquery
numericrow0
Shrinks the provided query by removing rows based on the specified method.
publicqueryqueryShrink
Query to shrink.
requiredqueryquery
Desired maximum size of the resulting query.
requirednumericsize
"LAST", "RANDOM"methodLAST
Shuffles the records of the provided query.
publicqueryqueryShuffle
requiredqueryquery
structOPTIONS{}
optionbooleanpreserveColumnTypesfalse
Converts the provided query to an array of structs.
publicarrayqueryToArray
requiredquerysource
Coverts the provided query to CSV according to RFC 4180.
publicstructqueryToCSV
Query to export as CSV.
requiredquerysource
structOPTIONS{}
optionbooleanheadertrue
Delimiter to use in the CSV.
optionstringdelimiter,
Prepend a meta line to indicate the delimiter in the CSV. (only supported by MS Excel)
optionbooleandelimiterHintfalse
Character(s) used for newlines.
optionstringnewlinechr(13) chr(10)
Append a newline to the end of the output.
optionbooleanappendNewlinefalse
Character used for escaping values in the CSV.
optionstringescape"
Always use quotes to wrap values.
optionbooleanforceQuotesfalse
Prepare HTTP header for download.
optionbooleandownloadtrue
Filename of the download.
optionstringfilenameexport