sqlc patterns in production

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

    Copier for golang, copy value from struct to struct and more

  • An alternative is to use a reflection based struct copier library or a codegen struct copier library

  • copygen

    Go generator to copy values from type to type and fields from struct to struct (copier without reflection). Generate any code based on types.

  • An alternative is to use a reflection based struct copier library or a codegen struct copier library

  • 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

  • sqlc recently added support custom struct tags. You can read up on it here or check out one of the testdata files for reference

  • almanack

    Predicts future sports scores

  • You can have methods on the SQLC structs. They just need to be in a separate file. See https://github.com/spotlightpa/almanack/blob/master/internal/db/page.go eg.

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