Skip to content

Commit

Permalink
Sample module configuration for CSV
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed May 8, 2015
1 parent b1ec070 commit 341fbea
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions raddb/mods-available/csv
@@ -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"
}

0 comments on commit 341fbea

Please sign in to comment.