A tool for comparing database schemas and data. It supports multiple database engines and provides a simple way to generate migration scripts.
You can download precompiled binaries from the releases assets.
You can install dbdiff using Go:
go install github.com/quantumsheep/dbdiff/cmd/dbdiff@latestTo compare two databases, use the following command:
dbdiff <source_db_connection_string> <target_db_connection_string>This will output the differences between the two databases in SQL format.
| Name | Tables | Indexes | Triggers | Data |
|---|---|---|---|---|
| SQLite | ✅ | ✅ | ✅ | ❌ |
| PostgreSQL | ❌ | ❌ | ❌ | ❌ |
| MySQL | ❌ | ❌ | ❌ | ❌ |