The data layer implementation for AshCsv
csv do
file "priv/data/tags.csv"
create? true
header? true
separator ?;
columns [:id, :name]
end
Name | Type | Default | Docs |
---|---|---|---|
file {: #csv-file .spark-required} |
String.t |
The file to read the data from | |
create? {: #csv-create? } |
boolean |
false |
Whether or not the file should be created if it does not exist (this will only happen on writes) |
header? {: #csv-header? } |
boolean |
false |
If the csv file has a header that should be skipped |
separator {: #csv-separator } |
any |
44 |
The separator to use, defaults to a comma. Pass in a character (not a string). |
columns {: #csv-columns } |
any |
The order that the attributes appear in the columns of the CSV |