How We Went All In on sqlc/pgx for Postgres + Go

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

Our great sponsors
  • OPS - Build and Run Open Source Unikernels
  • Scout APM - Less time debugging, more time building
  • SonarQube - Static code analysis for 29 languages.
  • GitHub repo pq

    Pure Go Postgres driver for database/sql

  • GitHub repo pggen

    Generate type-safe Go for any Postgres query. If Postgres can run the query, pggen can generate code for it.

    Any reason to use sqlc over pggen ? If you use Postgres, it seems like the superior option.

  • OPS

    OPS - Build and Run Open Source Unikernels. Quickly and easily build and deploy open source unikernels in tens of seconds. Deploy in any language to any cloud.

  • GitHub repo GORM

    The fantastic ORM library for Golang, aims to be developer friendly

    Well, if you look at Gorm's prepare_stmt.go you see that it is a thin wrapper around a database/sql.Stmt. And if you look at database/sql.Stmt you see that it's a sort of handle to an abstract entity that it creates in the database.

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