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

Option to disable struct tag generation #1250

Open
OscarVanL opened this issue Feb 23, 2023 · 1 comment
Open

Option to disable struct tag generation #1250

OscarVanL opened this issue Feb 23, 2023 · 1 comment

Comments

@OscarVanL
Copy link

If you're having a generation problem please answer these questions before submitting your issue. Thanks!

What version of SQLBoiler are you using (sqlboiler --version)?

4.14.1

What is your database and version (eg. Postgresql 10)

Postgresql 14

Further information. What did you do, what did you expect?

In my application I have a distinction between API structs and database structs so I can more closely control which fields get exposed to users.

When sqlboiler generates the ORM, it includes json, toml, and yaml struct tags. Ideally, I don't want to accidentally mislead my colleagues that these are API models rather than database models, but the inclusion of these tags could make it appear this way.

For this reason I'd love an option to disable these tags.

@stephenafamo
Copy link
Collaborator

I understand your concerns. Since it does not affect the actual usage I would be reluctant to add an extra option (that then has to be maintained in the future)

If you contribute an implementation that is relatively straightforward, then I'll review it and may consider merging.

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