qmetrics.net

goose

Database migration tool with SQL and Go migrations

DatabasesDesktop/CLI app
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

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.

  • Dedicated Postgres per project
  • Built-in authentication and RLS
  • Auto-generated REST and GraphQL APIs
TypeScriptDetails →
★ 115.9k⟳ todayApache-2.0
Open Source Alternative to:Amazon AuroraFirebase+1

NocoDB

Self-hostable no-code database with spreadsheet interface

NocoDB turns Postgres, MySQL, SQLite, or a hosted database into editable tables with grid, kanban, form, gallery, and calendar views. Teams collaborate with roles, sharing, REST APIs, and workflow integrations.

  • Spreadsheet-style grid and alternate views
  • Connect Postgres, MySQL, or SQLite
  • Role-based access and locked views
TypeScriptDockerDetails →
★ 65.7k⟳ todaySource-available
DatabasesSelf-hostable
Alternative to:AirtableGoogle Sheets+1

etcd

Raft-backed distributed consistent key-value store

etcd stores small critical configuration and coordination data for clusters. It exposes a gRPC API, tolerates failures via Raft, and ships with the etcdctl command-line client.

  • Strongly consistent Raft replication
  • gRPC and HTTP key-value API
  • Watch keys and directories for changes
GoLinux, macOS, Windows, DockerDetails →
★ 52.7k⟳ yesterdayApache-2.0
DatabasesSelf-hostable

DBeaver

Universal multi-platform database tool and SQL client

Free desktop client for developers and DBAs with SQL editing, data editing, ER diagrams, exports, and support for hundreds of JDBC or ODBC databases.

  • SQL and schema editors
  • Data grid editing
  • ER diagram modeling
JavaLinux, macOS, WindowsDetails →
★ 52.6k⟳ todayApache-2.0
DatabasesDesktop/CLI app
Open Source Alternative to:DataGripNavicat+4

ClickHouse

Column-oriented real-time analytics database management system

ClickHouse is a column-oriented database for generating analytical reports in real time using SQL on large datasets.

  • Column-oriented OLAP storage
  • Real-time analytical SQL queries
  • High compression for large datasets
C++Linux, macOSDetails →
★ 51.4k⟳ todayApache-2.0
Open Source Alternative to:Amazon RedshiftBigQuery+1

DuckDB

In-process analytical SQL database engine

DuckDB embeds in applications and the CLI to run fast OLAP SQL locally. It reads Parquet, CSV, JSON, remote object storage, and lakehouse formats without a separate database server.

  • Embedded in-process OLAP engine
  • Rich SQL with windows and nested types
  • Direct queries on Parquet and CSV files
C++CLIDetails →
★ 43.7k⟳ todayMIT