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
I am using pgx together with jet, and currently to be able to scan rows into structs I have to use AS method and write all the columns instead of using AllColumns, example:
Since to use RowToStructByNamepgx functionality the resulting SQL has to match the name of the struct field or it needs a db tag to map the data into the struct.
Therefore it would be very nice to support db tags to delete a lot of this code.
The text was updated successfully, but these errors were encountered:
I am using pgx together with jet, and currently to be able to scan rows into structs I have to use AS method and write all the columns instead of using AllColumns, example:
Since to use RowToStructByName pgx functionality the resulting SQL has to match the name of the struct field or it needs a db tag to map the data into the struct.
Therefore it would be very nice to support db tags to delete a lot of this code.
The text was updated successfully, but these errors were encountered: