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

Add custom tags for specific colum(s) in table(s) #1383

Closed
hasahmad opened this issue May 19, 2024 · 1 comment
Closed

Add custom tags for specific colum(s) in table(s) #1383

hasahmad opened this issue May 19, 2024 · 1 comment

Comments

@hasahmad
Copy link

[Feature request]

Is there a way to add custom tags for specific columns in tables for code generation?
I could not find anything related to it in the documentation.

Similar to defining aliases in the sqlboiler.toml config, maybe we could provide it like below?

[tags.tables.users.columns]
first_name = 'encrypt:"first_name"'
last_name = 'encrypt:"last_name"'
email = 'encrypt:"email"'
@stephenafamo
Copy link
Collaborator

You can add custom tags with the --tag flag (or corresponding config option).

You can also customize the struct tag case. https://github.com/volatiletech/sqlboiler?tab=readme-ov-file#custom-struct-tag-case

Would using these enable you achieve your use case?

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

No branches or pull requests

2 participants