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

Normalize column names when generating SQL #505

Closed
wants to merge 2 commits into from
Closed

Normalize column names when generating SQL #505

wants to merge 2 commits into from

Conversation

pudo
Copy link

@pudo pudo commented Jan 23, 2016

This fixes #396 by introducing a --normalize-columns flag. The more radical way to implement it would have been to actually make the change in Column, so that it would apply to all csvkit operations.

Apologies for the PEP8 things, they just irritate when editing. Can make a clean patch, too.

@jpmckinney
Copy link
Member

Can you make it clean? I have #503 for PEP8.

Not sure whether we want to introduce another dependency for a single method.

Also, not sure that slugify on its own will create a SQL-safe header, but I guess it's progress.

@jpmckinney
Copy link
Member

Also, a test would be 👍

@pudo pudo closed this Jan 24, 2016
lcorbasson pushed a commit to lcorbasson/csvkit that referenced this pull request Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Normalize (or rename) headers
2 participants