mirror of
https://github.com/ash-project/ash_csv.git
synced 2024-09-20 13:22:48 +12:00
523 B
523 B
Getting Started with CSV
AshCsv offers basic support for storing and reading resources from csv files.
Installation
Add ash_csv
to your list of dependencies in mix.exs
:
{:ash_csv, "~> 0.9.7"}
Usage
defmodule MyApp.MyResource do
use Ash.Resource,
domain: MyApp,
data_layer: AshCsv.DataLayer
csv do
... # see configuration options below
end
end
For information on how to configure ash_csv, see the DSL documentation.