ash_csv v0.9.1 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
Link to this section Summary
Functions
columns(resource)
deprecated
create?(resource)
deprecated
file(resource)
deprecated
header?(resource)
deprecated
separator(resource)
deprecated
Link to this section Functions
This function is deprecated. See `AshCsv.DataLayer.Info.columns/1.
This function is deprecated. See `AshCsv.DataLayer.Info.create?/1.
This function is deprecated. See `AshCsv.DataLayer.Info.file/1.
This function is deprecated. See `AshCsv.DataLayer.Info.header?/1.
This function is deprecated. See `AshCsv.DataLayer.Info.separator/1.