ash_csv v0.7.0-rc0 AshCsv.DataLayer View Source
The data layer implementation for AshCsv
Table of Contents
csv
Examples:
csv do
file "priv/data/tags.csv"
create? true
header? true
separator '-'
columns [:id, :name]
end
:file
- Required. The file to read the data from:create?
- Whether or not the file should be created if it does not exist (this will only happen on writes) The default value isfalse
.:header?
- If the csv file has a header that should be skipped The default value isfalse
.:separator
- The separator to use, defaults to a comma. Pass in a character (not a string). The default value is44
.:columns
- The order that the attributes appear in the columns of the CSV