documentation/dsls/DSL:-AshCsv.DataLayer.md

<!--
This file was generated by Spark. Do not edit it by hand.
-->
# 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){: #csv-file .spark-required} | `String.t` |  | The file to read the data from |
| [`create?`](#csv-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?){: #csv-header? } | `boolean` | `false` | If the csv file has a header that should be skipped |
| [`separator`](#csv-separator){: #csv-separator } | `any` | `44` | The separator to use, defaults to a comma. Pass in a character (not a string). |
| [`columns`](#csv-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>