what's your experience writing sql with 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

  • For programatically built SQL statements, I like: https://github.com/Masterminds/squirrel

  • orbitmatrix

    Crap Management Database

  • I enjoyed the abstraction layer of gorm up until I started doing some more hairy relationships (an example) and I found the documentation at the time didn't fully explain these edge cases and struct tags (basically +1 to your comment about gorm)

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

    social network in GRPC, Go, mysql, and vuejs, (by imran31415)

  • I made a write up related to this topic https://github.com/imran31415/social

  • sq

    Type safe SQL query builder and struct mapper for Go

  • I'm a big fan of go-structured-query. I quite like the code generation of tables from a database schema, as well as the core struct mapper feature both for reads/writes to the database, which keep the domain entities clean of any struct tags.

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