csv
Less than 1 minute
csv
CSV files (and other character delimited tables)
Description
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.
Detail
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": ","
}
}
Default Associations
- Extension:
csv
- MIME:
application/csv
- MIME:
application/x-csv
- MIME:
text/csv
- MIME:
text/x-csv
Supported Hooks
Marshal()
SupportedReadArray()
Treats each new line as a new array elementReadArrayWithType()
Treats each new line as a new array element, each element is minicsv
fileReadIndex()
Indexes treated as table coordinatesReadMap()
Works against tables such as the output fromps -fe
ReadNotIndex()
Indexes treated as table coordinatesUnmarshal()
SupportedWriteArray()
Writes a new line per array element
See Also
*
(generic) : generic (primitive)Marshal()
(type): Converts structured memory into a structured file format (eg for stdio)Unmarshal()
(type): Converts a structured file format into structured memory[[
(element): Outputs an element from a nested structure[
(index): Outputs an element from an array, map or tablecast
: Alters the data type of the previous function without altering it's outputconfig
: Query or define Murex runtime settingsformat
: Reformat one data-type into another data-typeint
: Whole number (primitive)jsonl
: JSON Linesselect
: Inlining SQL into shell pipelinesstr
(string) : string (primitive)