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

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

  • migrate

    Database migrations. CLI and Golang library.

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

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

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

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

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

  • 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