Does Go have a nice library for database migrations etc without necessarily being a full ORM?

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

    Manage your database schema as code (by ariga)

  • dbmate

    :rocket: A lightweight, framework-agnostic database migration tool.

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

    Database migrations. CLI and Golang library.

  • This works well https://github.com/golang-migrate/migrate and can be used as a standalone or as a lib.

  • GORM

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

  • GORM

  • ent

    An entity framework for Go

  • ENT

  • Flyway

    Flyway by Redgate • Database Migrations Made Easy.

  • Flyway is dope 🤩, too.

  • tern

    The SQL Fan's Migrator

  • I use https://github.com/jackc/tern + .env files which interpolate with its config for various environments.

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

    Self hosted media solution

  • I manage my own migration as well, my approach is before I get the sqlite db I do migrations like here: https://github.com/altlimit/dmedia/blob/develop/backend/model/model.go

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