mrkeyoor.comAsk

amacneil/dbmatetested 04 Oct 2026commit ab840ae

dbmate review

Consider Dbmate when a shared SQL migration CLI matters and your team will write rollback SQL, install dump clients and validate recovery.

  • Install 67 s
  • Build 110 s
10/17passed, run exited non-zero
  • 356 packages
Dataevaluationupdated 31 Oct 2026
+5stars / 7d

Dbmate uses plain SQL migrations. Consider it when services written in different languages need one migration CLI and your team will write rollback SQL. Our October 4, 2026 run at commit ab840ae completed installation and the build step, but the test command failed. Validate schema export and failure recovery before adoption.

Verdict

Consider Dbmate when a shared SQL migration CLI matters and your team will write rollback SQL, install dump clients and validate recovery. The October 4, 2026 run at ab840ae completed installation and the build step, but its test command failed. Reproduce the named failures and exercise your database workflow before adoption. Consider Goose for Go migration functions, Atlas for desired-schema planning, or golang-migrate for migration-source requirements.

We ran it

Lab card: what happened when we ran dbmate
Lab card from our sandbox run
Screenshot of dbmate (github.com/amacneil/dbmate)
github.com/amacneil/dbmate
Install✓ · 67s356 packages
Build✓ · 110s
Tests✗ · 22s10 passed · 7 failed of 17 (go test)
Repo88 files~8,984 lines of source · 0.6 MB · 4 CI workflows · Dockerfile

Answers from our run

Does dbmate build from source?

Dependencies installed in 67 seconds (356 packages), and the build succeeded in 110 seconds. We cloned commit ab840ae into a clean Debian container with 3 CPUs and no project-specific setup.

Do dbmate's tests pass?

No. The project's own test command finished in 22 seconds and reported 10 passed, 7 failed (go test).

Who should not use dbmate?

Teams requiring a successful source test command in our recorded sandbox before adoption.

What are the alternatives to dbmate?

golang-migrate, Goose, Atlas. Consider Dbmate when a shared SQL migration CLI matters and your team will write rollback SQL, install dump clients and validate recovery.

Setup4/5Documented installation choices and successful recorded install/build steps support 4 under the visible rubric. Failed tests and missing SQLite dump tooling require investigation; production setup was not established.
Docs3/5Practical command, configuration, driver and export coverage supports 3 under the visible rubric. The false whole-file atomicity guarantee materially weakens reliability because it can mislead failure recovery planning.
Community4/5Substantive maintainer discussion and follow-up testing in issue 675 support 4 for the visible collaboration evidence. Adoption, response times and project-wide support quality were not measured.
Maturity3/5Supplied release evidence and follow-up fixes support continued evaluation. The failed recorded test command and reported partial-recovery limitations keep this assessment at 3.

Discussed on

  1. hnDbmate: A lightweight, framework-agnostic database migration tool79 points
  2. hnShow HN: A lightweight, framework-agnostic database migration tool3 points

Who it’s for

Teams using several application languages that want a shared migration command.
Developers who want to review SQL migrations and schema dumps in Git.
Go developers considering a migration library or embedded migration files, subject to their own integration testing.

Who it’s NOT for

Teams requiring a successful source test command in our recorded sandbox before adoption.
Developers expecting Dbmate to generate rollback SQL.
Spanner users needing GoogleSQL support or schema dumps.
Teams depending on automatic recovery after a later section of a migration file fails.

Setup reality

The recorded run used commit ab840ae on October 4, 2026. Its recorded commit date is September 18, 2026. Installation completed in 67 seconds and the build step completed in 110 seconds. Our sandbox test step exited with code 1 after 22 seconds.

The sandbox used golang:1.24-bookworm with 3 CPUs and 8 GB RAM. The installation tail records downloading Go 1.27.1, so the image label alone does not identify the toolchain used. Stored parser summaries report 10 passed, 7 failed and 17 total; these are not verified counts of unique individual tests or exhaustive coverage.

The README documents binary, npm, Homebrew, Scoop and container installation routes. Database access requires a connection URL, and schema export requires the relevant external client program. Those installation routes and a production migration workflow were not separately tested.

Should you use Dbmate?

Dbmate uses plain SQL migrations. Consider it when services written in different languages need one migration command and your team will supply the rollback SQL. Its schema dumps can help reviewers inspect database structure in Git. Adoption should depend on verifying schema export and failure recovery in your own environment.

Our October 4, 2026 run at ab840ae completed installation and the build step, but its test command failed. That result supports a trial, not a conclusion about production readiness or compatibility across every documented database.

What the recorded run established

Installation succeeded in 67 seconds and the build step succeeded in 110 seconds. Our sandbox test step exited with code 1 after 22 seconds. The tested commit was ab840ae, not the v2.35.1 release commit b735560.

The stored parser summaries report 10 passed, 7 failed and 17 total. They do not establish exhaustive unique test counts. No complete-log reconciliation or new execution was performed for this correction.

The retained output names TestDumpSchema, TestAutoDumpSchema, TestLoadSchema, TestWaitBefore and TestWaitBeforeVerbose in the main dbmate package, plus TestConnectionStringUsesPostgresEnvironment in the PostgreSQL driver. Their summary lines do not establish the causes.

SQLite provides more specific diagnostics. TestSQLiteDumpSchema reports that the sqlite3 executable was not found in PATH. TestSQLiteFTS5Available reports "no such module: fts5". Investigate those requirements separately; neither diagnostic explains every failure.

The build tail records vet-exit:0. Build-step completion does not establish deployment or a complete migration workload. Package success lines do not establish live integration coverage for every database. The record contains no audit result, so security findings and scan coverage are unknown.

The MrKeyoor testing methodology explains command outcomes and sandbox limits. Its current wording does not establish which methodology revision governed this run.

Verify schema export explicitly

The README at the tested commit says schema export requires pg_dump, mysqldump or sqlite3 in PATH. When the required tool is absent, automatic dumps during up, migrate or rollback can be silently skipped. Running dbmate dump exposes the missing-executable error.

If your review process depends on schema.sql, check that the dump succeeds and the expected file changes. A successful migration command alone does not establish that the schema file was refreshed. The recorded SQLite dump failure makes this a concrete setup check.

Spanner has further documented limits: its integration uses the PostgreSQL dialect and PGAdapter, DDL migrations require transaction:false, and schema dumps are unsupported. Teams needing GoogleSQL or schema export should choose another workflow.

Ordering does not establish recoverability

Pending migrations run in numerical order. The README also permits an older pending migration to run after newer migrations have already been applied. Strict mode can reject out-of-order application; it cannot determine whether SQL written on separate branches remains compatible.

Rollback requires developer-written SQL in the migrate:down section. Dbmate does not derive the reverse operation.

The tested-commit README states that a migration file with multiple sections succeeds or fails as a whole. That guarantee conflicts with later upstream evidence and should not guide recovery planning.

In issue 675, a maintainer reports that partial sections can remain applied after a later section fails. The October 19, 2026 comment describes tests with v2.36.0 and v2.37.0. It reports that v2.37.0 corrected premature applied status and rollback ordering, while recovery remained incomplete because applied sections were not tracked individually. The comment also reports SQLite behavior, so the concern is not confined to nontransactional ClickHouse migrations. These are attributed upstream observations, not results from our October 4 run.

For an adoption trial, prefer separate migration files where practical. On a disposable database, exercise a successful migration, its rollback, schema export and a deliberate failure partway through your intended workflow. Inspect both database contents and migration status afterward. These are recommended checks; the recorded run did not complete them.

When another tool fits

Goose supports migrations written in SQL or Go functions. Consider it as a replacement runner when migrations require executable Go logic. Its documentation requires your own Goose binary for Go migrations.

Atlas compares the current database state with a desired schema and generates a migration plan. Consider its declarative workflow when you want plans derived from a desired schema. Its inspection and linting features may also be useful to evaluate separately; interoperability with Dbmate was not tested here.

golang-migrate reads migrations from local or remote sources. Consider it as a replacement runner when filesystem, repository or object-storage sources match how you distribute migrations.

These comparisons describe documented workflows. They do not establish that another tool would pass our sandbox test command.

What the ratings mean

These ratings are editorial judgments, not benchmarks. The scale is 1 for substantial obstacles, 2 for material gaps, 3 for usable with unresolved limitations, 4 for strong documented support with caveats, and 5 for unusually complete evidence within the assessed dimension.

Setup ease is 4: several installation routes are documented, and the recorded installation and build steps completed. Failed tests and missing SQLite dump tooling still require investigation. The score does not establish production setup success.

Documentation is 3. The README covers commands, configuration, drivers and schema export in practical detail, but its false whole-file success-or-failure guarantee can mislead recovery planning. Practical reliability matters alongside breadth. The later maintainer explanation helps identify the problem without making that README guidance reliable.

Community is 4 for the substantive maintainer discussion and follow-up testing visible in issue 675. This is a narrow assessment of the supplied collaboration evidence, not a measurement of adoption, response times or support quality across the project.

Maturity is 3. Supplied release evidence and follow-up fixes support continued evaluation, while the failed sandbox test command and reported partial-recovery limitations leave operational questions unresolved.

Alternatives

ProjectWhat it isPick it when
golang-migrate gh↗A migration CLI and Go library with local and remote migration sources.Consider it as a replacement runner when its documented filesystem, repository or object-storage sources fit how you distribute migrations.
GooseA migration CLI and library supporting SQL changes and Go functions.Consider it as a replacement runner when migrations require Go functions; its documentation requires your own binary for Go migrations.
AtlasA schema management tool with declarative and versioned migration workflows.Consider its declarative workflow when you want migration plans generated from a desired schema. Interoperability with Dbmate was not tested here.

What people are saying

  1. [github-trending] amacneil/dbmate

Sources

  1. Dbmate repository README
  2. Dbmate v2.35.1 release
  3. ClickHouse partial application issue
  4. Multi-section migration fix proposal
  5. Dbmate Go package reference

More data reviews