pgx
pgx copied to clipboard
Null handling for .RowsToStructByName
Is your feature request related to a problem? Please describe. I try and unmarshall queries into structs, but of course many cells in the rows are null. This is solved by pointer-to-pointer reference when using the .Scan() method but .RowToStructByName doesn't seem to work the same way.
Describe the solution you'd like If I could just reference the object I'm unmarshalling into with a pointer (which would semantically match the other use case) or use a different function to work with null values, this would be helpful
Would you please provide the code showing this issue?