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

Allow to forbid-list tables from generation #90

Closed
vetcher opened this issue Aug 30, 2021 · 3 comments
Closed

Allow to forbid-list tables from generation #90

vetcher opened this issue Aug 30, 2021 · 3 comments
Labels
enhancement New feature or request
Milestone

Comments

@vetcher
Copy link
Contributor

vetcher commented Aug 30, 2021

Sometimes, database contain tables that is not relates to domain itself and are serving as technical information. So we want it to be ignored by jet.
E.g. applied migrations list (https://github.com/pressly/goose creates table goose_db_version)

I propose to add some flag to cli, so generator would ignore tables passed to this flag.

$ jet -ignore="goose_db_version;locks"
@go-jet
Copy link
Owner

go-jet commented Aug 31, 2021

Yeah, make sense. The flag should probably be -ignore-table, to differentiate from views, and enums.

@go-jet go-jet linked a pull request Nov 4, 2021 that will close this issue
@go-jet go-jet added this to the Version 2.7.0 milestone Dec 3, 2021
@go-jet go-jet added the enhancement New feature or request label Dec 3, 2021
@flymedllva
Copy link

LGTM

@go-jet go-jet mentioned this issue Jan 20, 2022
@go-jet
Copy link
Owner

go-jet commented Jan 20, 2022

New generator flags -ignore-tables, -ignore-views and -ignore-enums added in Release 2.7.0.

@go-jet go-jet closed this as completed Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants