Skip to content

Latest commit

 

History

History
45 lines (25 loc) · 1.1 KB

DSL:-AshCsv.DataLayer.md

File metadata and controls

45 lines (25 loc) · 1.1 KB

DSL: AshCsv.DataLayer

The data layer implementation for AshCsv

csv

Examples

csv do
  file "priv/data/tags.csv"
  create? true
  header? true
  separator ?;
  columns [:id, :name]
end

Options

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
<style type="text/css">.spark-required::after { content: "*"; color: red !important; }</style>