csv
CSV files (and other character delimited tables)
This data type can be used for not only CSV files but also TSV (tab separated) or any other exotic characters used as a delimiter.
The CSV parser is configurable via config
(see link
below for docs on how to use config
)
» config -> [csv]
{
"comment": {
"Data-Type": "str",
"Default": "#",
"Description": "The prefix token for comments in a CSV table.",
"Dynamic": false,
"Global": false,
"Value": "#"
},
"separator": {
"Data-Type": "str",
"Default": ",",
"Description": "The delimiter for records in a CSV file.",
"Dynamic": false,
"Global": false,
"Value": ","
}
}
csv
application/csv
application/x-csv
text/csv
text/x-csv
Marshal()
SupportedReadArray()
Treats each new line as a new array
elementReadArrayWithType()
Treats each new line as a new array
element, each element is mini csv
fileReadIndex()
Indexes treated as table coordinatesReadMap()
Works against tables such as the output from
ps -fe
ReadNotIndex()
Indexes treated as table
coordinatesUnmarshal()
SupportedWriteArray()
Writes a new line per array elementcast
):
Alters the data-type of the previous function without altering its
output[[ Element ]]
): Outputs an element from a nested
structureselect
): Inlining SQL into shell pipelinesformat
): Reformat one data-type into another
data-typeconfig
): Query or define Murex runtime settings*
(generic): generic
(primitive)int
: Whole number
(primitive)jsonl
: JSON Linesstr
(string): string
(primitive)ReadIndex()
(type):
Data type handler for the index, [
, builtinReadNotIndex()
(type): Data type handler for the bang-prefixed index,
![
, builtinReadArray()
(type):
Read from a data type one array element at a timeWriteArray()
(type): Write a data type, one array element at a timeReadMap()
(type):
Treat data type as a key/value structure and read its contentsMarshal()
(type):
Converts structured memory into a structured file format (eg for
stdio)Unmarshal()
(type):
Converts a structured file format into structured memoryThis document was generated from builtins/types/csv/csv_doc.yaml.
This site's content is rebuilt automatically from murex's source code after each merge to the master
branch. Downloadable murex binaries are also built with the website.
Last built on Wed Jan 15 23:07:50 UTC 2025 against commit b4c4296b4c429617fd41527ea0efef33c52c15ef2b64972.
Current version is 6.4.2063 (develop) which has been verified against tests cases.