-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Improve cmd/schemagen #262
Conversation
@sylwiaszunejko can you please review this one? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review, much appreciated!
@sylwiaszunejko I added fixup commits, let me know when I can rebase the branch. |
It looks good now, squash the clean up commits into the previous ones to make the history of changes cleaner and for me it LGTM |
@zimnx (or @avelanarius ) - can either of you review this? |
Hey @zimnx can you take a look, please? 🙏🏻 |
I'll review it |
Please squash your commits into set of independent changes. Cleanup commit affecting files changed in other PR commit should be squashed. |
Co-authored by Alexander Setzer <Alexander.Setzer@alfatraining.de>
Co-authored by Alexander Setzer <Alexander.Setzer@alfatraining.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks for updates!
Who can press the button to merge this? |
That would be @avelanarius |
@avelanarius can you merge this, please? |
We want to be able to ignore certain tables (e.g.
gocqlx_migrate
), views and indexes when usingcmd/schemagen
.To do this, we have implemented two new flags:
ignore
, a comma-separated list of table, view or index names to ignore, this also automatically removes any unused typesignore-indexes
, a bool flag that controls whether types for indexes should be generatedWe have verified the implementation by extending the existing tests.