boiawang / sequelize-db-export-import

Generater models from mysql db or import tables from models files
MIT License
26 stars 8 forks source link

Allow option for camelCase models and fileNames. #11

Closed ssomnoremac closed 6 years ago

ssomnoremac commented 6 years ago

Since this is javaScript, I would think most people would want this by default, but here's a PR for having it as an option (-C or --camel) for both the sequelize model name and the file name as camelCase when the table name is snake_case.

ssomnoremac commented 6 years ago

Actually, model names aren't being camelCased, only the file names so don't merge. I couldn't figure out why even though I had it working without the option before. Sorry, I forgot how to use coffeeScript maybe.