#Struct Scan in nativ SQL Package?

5 messages · Page 1 of 1 (latest)

small cosmos
#

Hi there,

really loved the https://github.com/jmoiron/sqlx package, but currently I don't really see any maintenance work on it anymore, but so many pull-requests, so idk if I should use it anymore. However I really like the struct scan (http://jmoiron.github.io/sqlx/#queryrow) above the normal scan from the nativ sql lib. Is there maybe something similar, or do I have to fetch each value myself? Or is there an alternative good library?

GitHub

general purpose extensions to golang's database/sql - GitHub - jmoiron/sqlx: general purpose extensions to golang's database/sql

vernal agate
#

if you are targetting postgres only I think pgx/v5 has similar type of struct scanning as sqlx iirc

mossy glade
#

I don't really see any maintenance work on it anymore
I wouldn't say it needs any. It has everything you need, and even though looks abandoned it works itself fine.

small cosmos