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

Feature filter unused structs in models #2336

Conversation

yank0vy3rdna
Copy link

Added config option emit_filter_unused_models.
If true, add only used by queries models to models.go.

#710

@andrewmbenton
Copy link
Collaborator

Thanks! As you know this has been a feature request for awhile.

I'm not sure how Kyle wants to handle this but at the very least, in order to merge, we would need to address the failing test and write at least one new test that covers usage of this new config option.

@andrewmbenton
Copy link
Collaborator

There are a few issues with this implementation, so I took a crack at one of my own in #2369. It should behave similarly to this one, but covers a few more edge cases.

I'll close this PR and we can continue discussion on the new one.

@yank0vy3rdna yank0vy3rdna deleted the feature-filter-unused-structs-in-models branch June 28, 2023 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants