SQL libraries and Go - what am I missing?

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

  • This is a shameless plug but :p , you can use the underlying functions of https://github.com/ShiftLeftSecurity/gaum to do that (without need to use the whole library) it uses reflection to load results into a passwed slice of recipient objects and graciously ignores columns for which there is no correspondence. It accepts pgx and regular postgres conns

  • sqlc

    Generate type-safe code from SQL

  • There's https://github.com/kyleconroy/sqlc which might fit your needs.

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

    general purpose extensions to golang's database/sql

  • Yes, you wrap Rows.Columns in a helper the same way MapScan does: https://github.com/jmoiron/sqlx/blob/master/sqlx.go#L838

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