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 reddit.com/r/golang

Our great sponsors
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • talent.io - Download talent.io’s Tech Salary Report
  • SonarLint - Clean code begins in your IDE with SonarLint
  • Scout APM - Truly a developer’s best friend
  • atlas

    A database toolkit

  • dbmate

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

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Data Platform where developers build real-time applications for analytics, IoT and cloud-native services in less time with less code.

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

  • talent.io

    Download talent.io’s Tech Salary Report. Median salaries, most in-demand technologies, state of the remote work... all you need to know your worth on the market by tech recruitment platform talent.io

  • 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