jet icon indicating copy to clipboard operation
jet copied to clipboard

Whitelist flags for generate command

Open K1DV5 opened this issue 2 years ago • 1 comments
trafficstars

Is your feature request related to a problem? Please describe. I wanted to generate models for a few tables in a big database. I understand that there is the -ignore-tables flag, but it is too much work to list the 45 tables to generate models for 5 tables in a 50 table database. And if a new table is added to the database and I don't want to include it in the models, I would have to remember to include it as the 46th table to ignore.

Describe the solution you'd like I think it'd be great if there was something like -allow-tables flag which would take precedence over -ignore-tables when given. And same applies about enums and views.

K1DV5 avatar Feb 20 '23 14:02 K1DV5

Yeah, it makes sense. At the moment this behavior can be also achieved using generator customization(model example, sql builder example).

go-jet avatar Feb 21 '23 17:02 go-jet