Can anyone help me on how you are using golang with databases in production systems?

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

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
Sevalla - Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com
featured
  1. pgx

    PostgreSQL driver and toolkit for Go

    Is it better to use tools like [pgx](https://github.com/jackc/pgx) or stick with a ORM like GORM.

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. migrate

    Database migrations. CLI and Golang library.

    The tool for migration I use this -> https://github.com/golang-migrate/migrate.

  4. sqlc

    Generate type-safe code from SQL

    Personally I prefer not using an ORM and just use https://sqlc.dev/ which generates idiomatic go code.

  5. SQLBoiler

    Generate a Go ORM tailored to your database schema.

    I use sqlboiler which generates an ORM from your database, and sql-migrate which is a tool for managing SQL migrations. Although you have to write your migrations in SQL, which IMHO is a plus.

  6. sql-migrate

    SQL schema migration tool for Go.

    I use sqlboiler which generates an ORM from your database, and sql-migrate which is a tool for managing SQL migrations. Although you have to write your migrations in SQL, which IMHO is a plus.

  7. crbackend

    you can have a look at this project https://github.com/shubhamdixit863/crbackend/tree/master i have create a simple api with elasticsearch as backend ,with hexagonal design architecture ,in a similar fashion you can design something with any db

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

  • Anything like sqlc for Rust?

    5 projects | /r/rust | 1 Jan 2023
  • Is it just me who doesn't agree with db first ORM model?

    2 projects | /r/golang | 9 Apr 2022
  • Sqlc: Generate type-safe code from SQL

    1 project | news.ycombinator.com | 16 Apr 2025
  • sqlc: Type-Safe Querying in Go

    1 project | dev.to | 16 Mar 2025
  • Show HN: Generate type-safe code for SQL queries in any language

    2 projects | news.ycombinator.com | 27 Nov 2024

Did you know that Go is
the 4th most popular programming language
based on number of references?