ORM vs SQL Builder in Go

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

    Fluent SQL generation for golang

  • Using an ORM library like gorm, which potentially will generate unnecessary queries or using SQL builder library like squirrel where I need to manually write those queries that an ORM would do for me?

  • bqb

    BQB is a lightweight and easy to use query builder that works with sqlite, mysql, mariadb, postgres, and others.

  • Squirrel is great! Let me also plug bqb.

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

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

  • IMO jet is probably the most advanced SQL builder for go. Don't use ORMs.

  • sqlc

    Generate type-safe code from SQL

  • sqlc is the best database access tool I’ve ever used.

  • SQLBoiler

    Generate a Go ORM tailored to your database schema.

  • I love SQL Boiler, which generates type-safe code for you from the database schema.

  • proteus

    A simple tool for generating an application's data access layer. (by jonbodner)

  • I have a SQL mapping tool called Proteus at https://github.com/jonbodner/proteus . I spoke about its design and performance at GopherCon 2017: https://www.youtube.com/watch?v=hz6d7rzqJ6Q

  • goqu

    SQL builder and query library for golang

  • We've been using goqu and it's super nice! although there are a ton of other query builders that could better fit your use-case.

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