SaaSHub helps you find the best software and product alternatives Learn more →
Top 15 Go database-migration Projects
-
bytebase
Database governance built for humans and agents — controlling changes and access across every major database.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
FROM debian:bookworm-slim RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates \ && rm -rf /var/lib/apt/lists/* ARG GOOSE_VERSION=3.24.1 ADD [https://github.com/pressly/goose/releases/download/v${GOOSE_VERSION}/goose_linux_x86_64](https://github.com/pressly/goose/releases/download/v${GOOSE_VERSION}/goose_linux_x86_64) /usr/local/bin/goose RUN chmod +x /usr/local/bin/goose WORKDIR /migrations COPY migrations /migrations # Overridden by the job. Default is intentionally not "up" so a bare docker run does nothing destructive. ENTRYPOINT ["goose"] CMD ["-dir", "/migrations", "status"]
-
Project mention: spawn alternatives - dbmate, Flyway, atlas, liquibase, and goose | libhunt.com/r/saward/spawn | 2026-09-07
-
I started with sqldef, a tool built around the same concept, but it failed to parse some of the SQL in my development schema. I also considered pgschema, but it has PostgreSQL itself interpret the desired schema, which means you need an embedded PostgreSQL or a dev server. That was heavier to operate than I wanted, so I skipped it. Instead I built pistachio, which parses the schema with pg_query_go, PostgreSQL's own parser packaged as a library. If PostgreSQL can parse it, pistachio can, and the tool stays lightweight.
-
database-lab-engine
DBLab enables 🖖 database branching and ⚡️ thin cloning for any Postgres database and empowers DB testing in CI/CD. This optimizes database-related costs while improving time-to-market and software quality. Follow to stay updated.
-
astroladb
Schema-first platform with multi-language type exports, auto-migrations and a generator runtime for building REST APIs, GraphQL, SDKs, and more.
Project mention: Stop writing boilerplate: A Single Source of Truth for Rust, Go, Python and TS | dev.to | 2026-01-28GitHub: github.com/hlop3z/astroladb Docs: hlop3z.github.io/astroladb
-
gosmig
Simple, minimal SQL database migrations written in Go. Build your own migration CLI with it. Std lib database/sql and SQLX supported out of the box.
-
-
-
-
-
-
-
miglite
🚀 miglite is a lightweight and simplified database schema migration tool. Golang 实现的极简易用的数据库 Schema 迁移工具,无三方DB驱动依赖。
-
Project mention: I Built a Distributed Task Queue from Scratch with Go and PostgreSQL | dev.to | 2026-10-02
The migration runner is the best example of this. Dhara needed a way to set up its database tables, and instead of picking an existing tool, I built one. It started as a small part of Dhara and grew into a project of its own: Vow. It runs your SQL files in order, uses PostgreSQL advisory locks so two instances of a service can't migrate at the same time, and refuses to run if an already applied migration was renamed or deleted. Dhara's migrations run through Vow. I'll write about what I learned about database migrations in a separate post.
Go database-migrations discussion
Go database-migrations related posts
-
spawn alternatives - dbmate, Flyway, atlas, liquibase, and goose
6 projects | 7 Sep 2026 -
Seamless Integration Testing for Your Go Application on GitHub Actions with PostgreSQL
-
Ask HN: What tool(s) do you use to code review and deploy SQL scripts?
-
How do your teams run DB migrations?
-
Has anyone used Terraform for provisioning database schema?
-
Database version control: how do you do it at your company?
-
Maybe a dumb question ... but is there a default schema migration tool? for postgresql?
-
A note from our sponsor - SaaSHub
www.saashub.com | 7 Nov 2026
Index
What are some of the best open-source database-migration projects in Go? This list will help you:
| # | Project | Stars |
|---|---|---|
| 1 | bytebase | 14,669 |
| 2 | goose | 11,644 |
| 3 | dbmate | 7,511 |
| 4 | sqldef | 3,187 |
| 5 | database-lab-engine | 2,784 |
| 6 | astroladb | 84 |
| 7 | gosmig | 75 |
| 8 | migrate | 52 |
| 9 | migrator | 25 |
| 10 | miflo | 21 |
| 11 | libschema | 19 |
| 12 | dbdaddy | 18 |
| 13 | godfish | 14 |
| 14 | miglite | 9 |
| 15 | vow | 2 |