ash_csv v0.9.3 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 (String.t/0) - Required. The file to read the data from

  • :create? (boolean/0) - Whether or not the file should be created if it does not exist (this will only happen on writes) The default value is false.

  • :header? (boolean/0) - If the csv file has a header that should be skipped The default value is false.

  • :separator - The separator to use, defaults to a comma. Pass in a character (not a string). The default value is 44.

  • :columns - The order that the attributes appear in the columns of the CSV

Link to this section Summary

Link to this section Functions

This function is deprecated. See `AshCsv.DataLayer.Info.columns/1.

See AshCsv.DataLayer.Info.columns/1.

This function is deprecated. See `AshCsv.DataLayer.Info.create?/1.

See AshCsv.DataLayer.Info.create?/1.

This function is deprecated. See `AshCsv.DataLayer.Info.file/1.

See AshCsv.DataLayer.Info.file/1.

Link to this function

filter_matches(records, filter, api)

View Source
This function is deprecated. See `AshCsv.DataLayer.Info.header?/1.

See AshCsv.DataLayer.Info.header?/1.

This function is deprecated. See `AshCsv.DataLayer.Info.separator/1.

See AshCsv.DataLayer.Info.separator/1.