Looking for a design pattern where I'm able to update each field of a struct independently without creating N update statements in the underlying database language.

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

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • service

    Starter-kit for writing services in Go using Kubernetes. (by ardanlabs)

    You can create a new struct that defines the fields that can be updated. Then the caller can pass that in and you can update all the necessary fields at once. Similar to the layout here https://github.com/ardanlabs/service/blob/master/business/core/product/models.go.

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

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