Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please allow for ruby's CSV 2.4.0 :liberal_parsing #71

Open
Skeeve opened this issue Feb 18, 2019 · 0 comments
Open

Please allow for ruby's CSV 2.4.0 :liberal_parsing #71

Skeeve opened this issue Feb 18, 2019 · 0 comments

Comments

@Skeeve
Copy link

Skeeve commented Feb 18, 2019

When you dump data from (e.g.) mysql (using "--batch" and "--raw") you get something CSV-like.

The issues here are

  1. Fields are not quoted
  2. Quotes can appear in values
  3. Tab is the separator

Ideally we would have the possibility to tell the underlying CSV class that we do not have quoted fields, that quotes need not be escaped and have a (more convenient) way to define a control-character as the separator.

But I think the most important issue is that we would need to be able to set :liberal _parsing

Cite:

When set to a true value, CSV will attempt to parse input not conformant with RFC 4180, such as double quotes in unquoted fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants