You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I understand you correctly, you expect the following output
type FindAccountByEmailRow struct {
ID uuid.UUID `sometagtype:"some_value"`
State sql.NullString
# ... rest of the fields
}
You want the field in the result struct to have the same annotation as the corresponding field in the models struct. Since this works with emit_json_tags: true as you stated, I would assume this is a bug.
The commit above would fix that.
Version
1.15.0
What happened?
When I use given configuration I can see generated tag in
models
file.However generated struct for my query doesn't contain mentioned tag;
When I use option:
emit_json_tags: true
I can see json tag in both placesSo my question is if this is a problem or if the generator needs to be configured differently.
Relevant log output
No response
Database schema
SQL queries
Configuration
Playground URL
No response
What operating system are you using?
macOS
What database engines are you using?
PostgreSQL
What type of code are you generating?
Go
The text was updated successfully, but these errors were encountered: