qmetrics.net

goose

Database migration tool with SQL and Go migrations

goose screenshot

Goose applies incremental SQL or Go migrations across Postgres, MySQL, SQLite, and several other databases. It ships as a command-line tool and as a Go library.

Overview

Goose is a database migration tool for managing schema through versioned SQL files or Go functions. You can create migrations, apply them forward, roll back, inspect status, and target specific versions with commands such as up, down, up-to, and down-to.

It works against multiple database engines, including Postgres, MySQL, MariaDB, Spanner, SQLite, YDB, ClickHouse, MSSQL, and Vertica. SQL migrations use goose Up and Down annotations in comments, support optional non-transactional statements, multi-statement blocks, and environment variable substitution in SQL. Go migrations run as registered functions when you build a custom goose binary that imports the goose package.

The CLI can load connection settings from environment variables or .env files. Features described in the documentation include out-of-order migration handling with an allow-missing option, data seeding, hybrid timestamp and sequential versioning for teams, and embedding SQL migrations into Go binaries for read-only apply paths.

Installation options include a binary via Go install, Homebrew on macOS, and a minimal container image for linux/amd64 and linux/arm64 that runs .sql migrations from a /migrations working directory. Driver-specific notes apply for databases such as MySQL parseTime and multiStatements, and ClickHouse deployment modes.

Key features

  • Incremental SQL and Go migrations
  • Up, down, status, and version commands
  • Out-of-order migration support
  • Environment variable substitution in SQL
  • Embedded SQL migrations in Go binaries
  • Data seeding support
  • Hybrid timestamp and sequential versioning
  • Multi-database driver support

Use cases

  • Versioning relational database schema changes
  • Rolling back failed migrations in production
  • Running complex Go logic inside migrations
  • Applying migrations from CI with a container image
  • Team workflows with timestamped dev migrations

Tags

Similar software

sqldef

Idempotent SQL schema management CLI

Command-line tools compare desired SQL DDL files to live databases and apply migrations for MySQL, PostgreSQL, SQLite, and SQL Server.

★ 3.2k⟳ 2 days agoMIT · open core
Build & DeploymentDesktop/CLI app

Supabase

Open-source Postgres platform with auth, APIs, and storage

Supabase bundles a dedicated Postgres database with authentication, auto-generated REST and GraphQL APIs, realtime, functions, file storage, and vector tooling.

★ 115.6k⟳ todayApache-2.0
Open Source Alternative to:FirebaseFirebase Realtime Database

nvm

POSIX shell version manager for Node.js

nvm installs and switches between Node.js versions from the command line on POSIX shells including bash and zsh.

★ 96.3k⟳ 2 days agoMIT
Build & DeploymentDesktop/CLI app

uv

Fast Python package and project manager

uv is a Rust-based tool that manages Python dependencies, virtual environments, scripts, and interpreters. It offers a pip-compatible interface and universal lockfiles for projects.

★ 92.7k⟳ 2 days agoApache-2.0
Build & DeploymentDesktop/CLI app

Hugo

Go-based static site generator with flexible templating

Hugo is a static site generator written in Go. It turns content and templates into deployable HTML sites with asset pipelines for CSS, JavaScript, Sass, and images.

★ 90.6k⟳ todayApache-2.0
Build & DeploymentDesktop/CLI app

Vite

Frontend build tool for modern web projects

Vite is a build tool for modern web projects, combining a development server with an optimized production build. It targets a faster, leaner local development workflow.

★ 84.2k⟳ yesterdayMIT
Build & DeploymentDesktop/CLI app