The fantastic ORM library for Golang, aims to be developer friendly
Short answer, you can’t, at least not directly, since sqlx isn’t an ORM. I’d check out gorm for something like that.
Type safe SQL builder with code generation and automatic query result data mapping
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.
Updating dependencies is time-consuming.. Solutions like Dependabot or Renovate update but don't merge dependencies. You need to do it manually while it could be fully automated! Add a Merge Queue to your workflow and stop caring about PR management & merging. Try Mergify for free.
SQL-first Golang ORM (by uptrace)
Should work for bun as well: https://bun.uptrace.dev/guide/relations.html#has-many-relation
Does Go, has something similar to Laravel eloquent (ORM) ?
7 projects | /r/golang | 11 Apr 2023
Show HN: A Go framework for your projects
10 projects | news.ycombinator.com | 2 Jul 2022
Is there a DB framework that can manage migrations like Ruby on Rails ?
4 projects | /r/golang | 8 Jun 2022
The "preferred" way of mapping SQL results in Golang is honestly, subjectively, awful, how to deal with this
3 projects | /r/golang | 9 Aug 2023
Auto generate go code for API endpoints from DAO functions?
1 project | /r/golang | 20 Jul 2023