Open jstrohm-triller opened 5 years ago
This is definitely something that could be implemented but it requires a larger change to be useful.
In SQLBoiler there's still a few places where it's useful to build strings with +
and this prevents that from happening because it requires a conversion from Workday
to string
for it to work.
This could be done as part of #426 but it's a breaking change.
This could possibly be done now as #426 is finished. Though it is a breaking change.
I would love to see this in SQLBoiler. Maybe as an option in sqlboiler.toml
?
Since it is a breaking change yes, an opt-in flag in config would do until 4.0 at which point that'd be the only way. This really is only made possible by 426 though since those types will be pain to deal with in any other scenario.
Happy to see a PR for this at some point.
I'd love to help. As far as I understood is #426 resolved and the feature should be behind a feature flag. Correct?
Okay, so I'm currently browsing the repo and making myself familiar with how the project is structured. The template for the boil_types.go
is located under templates/singleton/boil_types.go
.
There is templatebin/bindata.go
which is the only place I could find where templates/singleton/boil_types.go
is being used, but I'm unsure what bindata.go
exactly does. Any guidance here would be helpful :)
Cheers, Tom
@tomscholz take a look at the contributing guide. Talks about a tool called go-bindata and where to get it. The boil.sh
build script has ways to take the modified templates and turn it into that bindata.go
I'm new to Go and SQLBoiler but would it be possible to have enums be their own type like this?