gnormal / gnorm

A database-first code generator for any language
https://gnorm.org
Other
487 stars 40 forks source link

table filter #10

Closed natefinch closed 7 years ago

natefinch commented 7 years ago

would be nice to give the user the option to filter what tables they want code generated for. Let's say we have two configuration values, ExcludeTables and IncludeTables... you can define one or the other but not both. They're both just a list of strings. If you define IncludeTables, then only the listed tables are used to generate code. If you define ExcludeTables, then all tables in the DB except those listed will be used to generate code. Implementation can just be a filter after we query the DB... no need to filter the query itself, we're not returning so much data that a post-facto filter is going to hurt anything.

natefinch commented 7 years ago

done here: e8df7631b243374188589f34ebebb248a952807f