Replies: 3 comments 2 replies
-
When I started maintaining SQLBoiler, things were already this way and I've never thought about it. While I would like to dig into this and change it if there are significant benefits, it would be a huge breaking change so it cannot even be considered before we are ready for a new major version. |
Beta Was this translation helpful? Give feedback.
-
From the
I also noticed incorrect results after binding to I believe this is part of the reason for using |
Beta Was this translation helpful? Give feedback.
-
@stephenafamo how are you looking into this at https://github.com/stephenafamo/bob project? |
Beta Was this translation helpful? Give feedback.
-
Why was it decided to return a slice of pointers instead of a slice of structures.
sqlboiler/templates/main/01_types.go.tpl
Line 19 in 35bb36b
Referring to the articles:
https://andrii-kushch.medium.com/go-what-to-return-a-slice-of-structs-vs-a-slice-of-pointers-42647912530a
https://medium.com/@philpearl/bad-go-slices-of-pointers-ed3c06b8bb41
The authors' conclusion is that it is better to use a slice of structures.
I would like to ask if there was any particular reason for this decision.
Maybe this is an idea for improvement.
Beta Was this translation helpful? Give feedback.
All reactions