[HELP]One to many in sqlx.

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • Mergify - Updating dependencies is time-consuming.
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • SonarLint - Clean code begins in your IDE with SonarLint
  • GORM

    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.

  • jet

    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.

  • Mergify

    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.

  • bun

    SQL-first Golang ORM (by uptrace)

    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.

Suggest a related project

Related posts