nodejh / sequelize-automate

Automatically generate bare sequelize models from your database.
MIT License
116 stars 22 forks source link

Add ability to match tables that only matches a given RegExp #33

Closed shihabmridha closed 4 years ago

shihabmridha commented 4 years ago

Backstory: I needed to create models for tables with prefix "code".

Example: I have 3 tables named users, codeRace, codeColor. I need to create models for codeRace and codeColor not for users.

Implementation: I have added an additional parameter --match that would take a RegExp and filter tables according to that given RegExp.