Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data CsvOptions = CsvOptions' {}
- newCsvOptions :: CsvOptions
- csvOptions_delimiter :: Lens' CsvOptions (Maybe Text)
- csvOptions_headerList :: Lens' CsvOptions (Maybe (NonEmpty Text))
Documentation
data CsvOptions Source #
Processing options for the CSV file being imported.
See: newCsvOptions
smart constructor.
CsvOptions' | |
|
Instances
newCsvOptions :: CsvOptions Source #
Create a value of CsvOptions
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:delimiter:CsvOptions'
, csvOptions_delimiter
- The delimiter used for separating items in the CSV file being imported.
$sel:headerList:CsvOptions'
, csvOptions_headerList
- List of the headers used to specify a common header for all source CSV
files being imported. If this field is specified then the first line of
each CSV file is treated as data instead of the header. If this field is
not specified the the first line of each CSV file is treated as the
header.
csvOptions_delimiter :: Lens' CsvOptions (Maybe Text) Source #
The delimiter used for separating items in the CSV file being imported.
csvOptions_headerList :: Lens' CsvOptions (Maybe (NonEmpty Text)) Source #
List of the headers used to specify a common header for all source CSV files being imported. If this field is specified then the first line of each CSV file is treated as data instead of the header. If this field is not specified the the first line of each CSV file is treated as the header.