FREEDOM251

Freedom251 › sqlx-cli

Instead of sqlx-cli

sqlx-cli alternatives

sqlx-cli is a free, open-source command-line utility for SQLx projects. It creates and drops databases named by `DATABASE_URL`, creates, runs, inspects, and reverts SQL migrations, and supports paired up and down scripts. Its `cargo sqlx prepare` command stores query metadata in `.sqlx`, allowing checked-in metadata to support builds without an active database connection. A CI check reports when that metadata is outdated. It runs on Linux, macOS, and Windows and supports PostgreSQL, MySQL, MariaDB, and SQLite, with selectable database-driver and TLS features during installation.

  1. 1

    Skeema

    Free plan LinuxMacWindows

    MySQL and MariaDB declarative schema workflows — Skeema manages declarative CREATE-based schemas with diff, lint, push, pull, and online alteration workflows instead of SQLx query metadata.

    6.9 Free plan · paid from $124/mo Visit site
  2. 2

    Sqitch

    Free plan LinuxMacSelf-hosted+1

    Framework-independent, dependency-aware database changes — Sqitch uses native database scripts, dependency declarations, plan files, and Merkle-tree integrity across more database engines than sqlx-cli.

    7.0 Open source Visit site
  3. 3

    Atlas

    Free plan Open source APILinuxMac+3

    Declarative or versioned schemas with migration validation — Atlas compares desired HCL, SQL, or ORM schemas with databases, generates plans, and adds linting, safety checks, integrations, and Pro drivers.

    Free plan · paid from $9/user/mo · 30-day trial Visit site
  4. 4

    dbmate

    Free plan LinuxMacSelf-hosted+1

    Language-independent timestamped SQL migrations — Dbmate runs timestamp-versioned plain SQL migrations across several languages, supports atomic transactions, and maintains a reviewable schema snapshot.

    Open source Visit site
  5. 5

    FluentMigrator

    Free plan LinuxMacSelf-hosted+1

    .NET teams writing versioned C# migrations — FluentMigrator uses a fluent C# API with Up and Down methods, version tracking, preview, validation, and .NET CLI execution.

    Free plan Visit site
  6. 6

    golang-migrate

    Free plan LinuxMacSelf-hosted+1

    Go applications needing CLI or migration library use — golang-migrate is both a CLI and Go library, reads migrations from many remote or embedded sources, and supports more drivers than sqlx-cli.

    Open source Visit site
  7. 7

    Goose

    Free plan APILinuxMac+2

    Go or SQL migrations with broad driver coverage — Goose combines CLI and library use, supports SQL or Go migrations, and offers apply, rollback, redo, reset, inspect, and version commands.

    7.3 Open source Visit site
  8. 8

    Liquibase

    Free plan APIExtensionLinux+3
    7.3 Free plan Visit site
  9. 9

    db-migrate

    Free plan LinuxSelf-hosted
    7.2 Open source Visit site
  10. 10

    Doctrine Migrations

    Free plan LinuxSelf-hosted
    7.2 Free plan Visit site
  11. 11

    DbUp

    Free plan Self-hosted
    7.1 Free plan Visit site
  12. 12

    Evolve

    Free plan LinuxWindows
    7.1 Open source Visit site
  13. 13

    Refinery

    Free plan LinuxMacSelf-hosted+1
    7.1 Open source Visit site
  14. 14

    migrate-mongo

    Free plan LinuxSelf-hosted
    7.0 Open source Visit site
  15. 15

    pt-online-schema-change

    Free plan LinuxSelf-hosted
    6.9 Free plan Visit site
  16. 16

    SchemaHero

    Free plan LinuxMacSelf-hosted+2
    6.8 Free plan Visit site
  17. 17

    node-pg-migrate

    Free plan APISelf-hosted
    6.7 Open source Visit site
  18. 18

    Phinx

    Free plan Self-hosted
    6.7 Free plan Visit site
  19. 19

    Ridgepole

    Free plan Self-hosted
    6.6 Open source Visit site
  20. 20

    pg-schema-diff

    Free plan Self-hosted
    6.5 Free plan Visit site
  21. 21

    Redgate Flyway

    by Redgate Software
    Free plan WindowsMacLinux+1
    6.5 Free plan · 28-day trial Visit site
  22. 22

    Umzug

    Free plan Self-hosted
    6.5 Free plan Visit site
  23. 23

    DB Change Manager

    Free trial Windows
    6.1 14-day trial Visit site
  24. 24

    gh-ost

    Free plan LinuxMac
    6.0 Free plan Visit site
  25. 25

    DBmaestro

    Paid APISelf-hosted
    5.7 Pricing on request Visit site
  26. 26

    sqldef

    Paid LinuxMacSelf-hosted+2
    5.1 Open source Visit site
  27. 27

    yoyo-migrations

    Paid Self-hosted
    4.6 Open source Visit site

Readers may look elsewhere for declarative schema management, broader database coverage, language-independent workflows, framework-specific tooling, or hosted integrations. sqlx-cli is free, but its workflow centers on Rust commands and database URLs supplied through a flag, environment variable, or `.env` file. MSSQL support is unavailable pending a driver rewrite. When switching, weigh each tool’s migration format, rollback and dependency handling, safety checks, database range, execution environment, CI integrations, and pricing. Some alternatives add schema diffing, validation, cloud workflows, or library APIs, while others focus on straightforward SQL migration execution.

← Back to sqlx-cli The whole database migration tools list