# goose (database migrations)

> Database migration tool for SQL files and Go functions

Source: https://talira.ai/catalog/goose-database-migrations-cbmxye2d
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, Library
- Categories: [developer tools / database / migrations](https://talira.ai/categories/developer-tools/database/migrations)
- Platforms: cli[^3]
- Licence: MIT[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Backed by: [Pressly](https://talira.ai/orgs/pressly.md)

goose is a database migration tool and Go library. You manage a database schema with incremental SQL migration files, Go migration functions, or both; the goose CLI applies SQL migrations, and for Go migrations you build your own goose binary that registers your functions and runs them with your own database connection, inside a transaction if you want. It needs no config files and its package registers no SQL drivers itself. It's a fork of the original liamstask/goose, under the MIT licence.

## Links

- Website: https://pressly.github.io/goose/
- GitHub: https://github.com/pressly/goose
- Docs: https://pressly.github.io/goose/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/goose>[^1]

## Problems it solves

- version my database schema changes alongside my Go code
- run a data migration that needs Go logic, not just SQL
- apply pending database migrations when my service deploys

## Features

- SQL migration files
- migrations written as Go functions
- Go migrations run inside a transaction
- no config files
- timestamped or sequential versions
- usable as a Go library or a CLI

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.66 out of 1.
Signals: maintenance 0.83, adoption 0.81, momentum 0.59, community 0.88, backing 0.30, extensibility 0.20.

- last commit 4 days ago
- 34 commits in the last 90 days
- latest release v3.30.2 4 days ago
- 11.8k GitHub stars
- 154 contributors
- 863 Homebrew installs in 30 days
- backed by Pressly

## Alternatives

- [golang-migrate](https://talira.ai/catalog/golang-migrate-pey7g13m.md): Database migrations as a CLI and Go library
- [Liquibase](https://talira.ai/catalog/liquibase-bkqpwkmt.md): Track, version, deploy and roll back database schema changes across 70+ databases
- [Atlas](https://talira.ai/catalog/atlas-vjsak9tx.md): Database schema as code: plan, lint, test and apply schema migrations, like Terraform for databases
- [dbmate](https://talira.ai/catalog/dbmate-q0nv00j1.md): A lightweight, framework-agnostic database migration tool for plain SQL migrations
- [Bytebase](https://talira.ai/catalog/bytebase-m5d8k3mk.md): The standard for database governance
- [Reshape](https://talira.ai/catalog/reshape-g9t6827t.md): An easy-to-use, zero-downtime schema migration tool for Postgres

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 27 Nov 2026)
[^2]: https://github.com/pressly/goose/blob/main/LICENSE (checked 27 Nov 2026)
[^3]: https://pressly.github.io/goose/ (checked 27 Nov 2026)
