Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# -*- text -*- | ||
# | ||
# Read CSV files and use them in maps. | ||
# | ||
# The CSV files MUST be formatted according to RFC 4180. | ||
# | ||
# Multi-line fields are NOT allowed. | ||
# | ||
# | ||
# | ||
# | ||
# $Id$ | ||
|
||
csv { | ||
# | ||
# The field delimiter. MUST be a one-character string | ||
# | ||
delimiter = "," | ||
|
||
# | ||
# The file which contains the CSV data | ||
# | ||
filename = ${modconfdir}/csv/${.:instance} | ||
|
||
# | ||
# A header which defines field names. | ||
# | ||
# MUST have the same number of fields as are in the CSV file. | ||
# | ||
# MUST NOT include whitespace. | ||
# | ||
# Fields which are not used should have no name | ||
# e.g. "foo,,bar" defines 3 fields, where the second | ||
# is unused. | ||
# | ||
header = "field1,,field3,field4" | ||
|
||
# | ||
# The name of the key field. It is used to index the entries. | ||
# It can be any one of the field names defined above. | ||
# | ||
key_field = "field1" | ||
} |