Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Short answer, you can’t, at least not directly, since sqlx isn’t an ORM. I’d check out gorm for something like that.
Had a similar issue and the only Go library I've found, that can do such a scan automatically for you is this one: https://github.com/go-jet/jet.
Should work for bun as well: https://bun.uptrace.dev/guide/relations.html#has-many-relation
NOTE:
The number of mentions on this list indicates mentions on common posts plus user suggested alternatives.
Hence, a higher number means a more popular project.