Closed tcr-ableton closed 6 years ago
After tinkering around, destroying the models, and trying something else, multiple times, it seems fixed now. So I'll assume it was a problem with my dev environment rather than sqlboiler
until proven otherwise.
I'll reopen if relevant :-)
Cheers
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 v2.7.0
If this happened at generation time what was the full SQLBoiler command you used to generate your models? (if not applicable leave blank)
If this happened at runtime what code produced the issue? (if not applicable leave blank)
Here's the generated go code
What is the output of the command above with the
-d
flag added to it? (Provided you are comfortable sharing this, it contains a blueprint of your schema)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?
Coming from gorm where I handled JSONB fields using the
postgres.Jsonb
type I am a bit confused as to what to expect as a proper generated output forjsonb
fields. Certainly not what it generates now: astring
.I have found an older issue which seems to point to a dedicated
JSON
type in sqlboiler, but I can't get sqlboiler to generate it.It feels like I missing a step or a piece of information and would need some help/examples regarding how to use and handle
jsonb
columns with sqlboiler. Any pointers?Thanks! :-)