volatiletech / sqlboiler

Generate a Go ORM tailored to your database schema.
BSD 3-Clause "New" or "Revised" License
6.73k stars 544 forks source link

JSON/YAML tag exclusion #600

Closed denisdubovitskiy closed 5 years ago

denisdubovitskiy commented 5 years ago

Is there any chance to exclude JSON tags for particular tables such as passwords/any other sensitive data? Seems like a template doesn't support such functionality. It would be great to have a configurable column serialization behaviour.

aarondl commented 5 years ago

Currently the json tags that are generated are more for convenience than something you should rely on to create a web API or something. I'd recommend an api layer of structs that's different (but similar) to the sqlboiler models.