csv: allow all Ruby csv parsing options

Closes #149

Generalization on PR #146 by Qgel. Thanks for the contribution!
This commit is contained in:
Andy Meneely
2016-03-24 02:23:47 -04:00
parent 080bd7e934
commit d7943da750
6 changed files with 49 additions and 2 deletions
+9
View File
@@ -36,5 +36,14 @@ explode
Quantity explosion will be applied to the column this name. For example, rows in the csv with a ``'qty'`` of 3 will be duplicated 3 times.
col_sep
default: ``','``
Column separator. One of the CSV custom options in Ruby. See next option below.
CSV custom options in Ruby standard lib.
All of the options in Ruby's std lib version of CSV are supported **except** ``headers`` is always ``true`` and ``converters`` is always set to ``:numeric``. See the `Ruby Docs <http://ruby-doc.org/stdlib-2.2.0/libdoc/csv/rdoc/CSV.html#method-c-new>`_ for information on the options.
Examples
--------