Closed ernestdolog closed 5 years ago
I don't disagree, but it becomes hard because the values can be so varied for each field that we'd have to make a templating language inside the toml file which is just gross. The fear of that complexity has left us with the current solution: You can override the templates for this functionality if you need it badly enough.
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
)?SQLBoiler v3.2.0
Please provide a relevant database schema so we can replicate your issue (Provided you are comfortable sharing this)
Further information. What did you do, what did you expect?
Hi,
As it's not a rare thing to create a hash from a go struct, and most of go hashing libraries provide functionality for excluding a field with giving it a
hash:"-"
orhash:exclude
tag it would be nice to have a configuration to set several columns of several fields with this tag. It would be the best if i could configure it at the .toml config file on the root.from this:
I would like to magic this: