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

Whitelist flags for generate command #216

Open
K1DV5 opened this issue Feb 20, 2023 · 1 comment
Open

Whitelist flags for generate command #216

K1DV5 opened this issue Feb 20, 2023 · 1 comment

Comments

@K1DV5
Copy link

K1DV5 commented Feb 20, 2023

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.

@go-jet
Copy link
Owner

go-jet commented Feb 21, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants