Is sqlx still the top choice for auto mapping database query results to a struct?

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

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.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • sqlc

    Generate type-safe code from SQL

  • These days I use https://github.com/kyleconroy/sqlc which works okay for mysql and excellent support for postgresql. Your point it to your migrations directory and write plain SQL queries which it from which it generates Go methods that execute the query.

  • jet

    Type safe SQL builder with code generation and automatic query result data mapping

  • Check - 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
  • go-doudou

    go-doudou(doudou pronounce /dəudəu/)is OpenAPI 3.0 (for REST) spec and Protobuf v3 (for grpc) based lightweight microservice framework. It supports monolith service application as well.

  • If you like sqlx, I recommend you to have a look at go-doudou built-in lightweight orm based on sqlx. It can do struct to table and table to struct migration/sync, generate dao layer code to simplify your single table CRUD operations, and it also can print SQL query with parameters substituded along with opentracing compatible trace ID for locating problems, and it will have more features coming such as cache layer... Here is the repo: https://github.com/unionj-cloud/go-doudou

  • sqlx

    general purpose extensions to golang's database/sql

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

  • How to Work with SQL Databases in Go

    6 projects | /r/golang | 19 Jan 2023
  • 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
  • goscanql - conveniently reading joined SQL data into structs

    2 projects | /r/golang | 17 Apr 2023
  • Why SQL is right for Infrastructure Management

    6 projects | dev.to | 6 Apr 2023
  • Automatic CRUD code generetor?

    4 projects | /r/golang | 5 Feb 2023