migrations VS go-pg

Compare migrations vs go-pg and see what are their differences.

migrations

SQL database migrations for Golang go-pg and PostgreSQL (by go-pg)

go-pg

Golang ORM with focus on PostgreSQL features and performance (by go-pg)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
migrations go-pg
2 9
307 5,581
0.3% 0.7%
0.0 6.4
6 months ago 29 days ago
Go Go
BSD 2-clause "Simplified" License BSD 2-clause "Simplified" License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

migrations

Posts with mentions or reviews of migrations. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-02-22.
  • Migrations
    1 project | dev.to | 24 Jun 2021
    With database created, we also need to create tables in which our data will be store. And best way to do that is using migrations. We will be using go-pg/migrations module. On GitHub page you can find basic installation and usage guide, and we will use that. Let's start by creating new directory migrations/ inside of project root and file file migrations/main.go:
  • Go Tools: For database schema migrations
    5 projects | dev.to | 22 Feb 2021
    github.com/go-pg/migrations: Package (Explicit SQL),

go-pg

Posts with mentions or reviews of go-pg. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-12.

What are some alternatives?

When comparing migrations and go-pg you can also consider the following projects:

tern - The SQL Fan's Migrator

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

gobuffalo/pop - A Tasty Treat For All Your Database Needs

bun - Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one

videos - Slides and examples used for my training videos

ent - An entity framework for Go

retool - Retool: a better filter tool for Redump and No-Intro DAT files.

SQLBoiler - Generate a Go ORM tailored to your database schema.

sqlx - general purpose extensions to golang's database/sql

upper.io/db - Data access layer for PostgreSQL, CockroachDB, MySQL, SQLite and MongoDB with ORM-like features.

bun - SQL-first Golang ORM