[HELP]One to many in sqlx.

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

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • 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.

  • 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.

    InfluxDB logo
  • 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