You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All the sql.Null<Type>s are required for correctness and probably faster due to less boxing, but they are pretty clunky. We should support a mode where the generated Scan methods scan into the null wrappers but then convert to native nulls.
I'm somewhat inclined to say that this should be the default, though there should be a toml setting to toggle between the two modes.
The text was updated successfully, but these errors were encountered:
This patch switches the public interface of pggen's
generated code to use native go pointers rather than
`sql.Null*` types. This might have a small performance
impact, but it should make for more ergonomic code.
Closes#27
All the
sql.Null<Type>
s are required for correctness and probably faster due to less boxing, but they are pretty clunky. We should support a mode where the generatedScan
methods scan into the null wrappers but then convert to native nulls.I'm somewhat inclined to say that this should be the default, though there should be a toml setting to toggle between the two modes.
The text was updated successfully, but these errors were encountered: