Sqitch
$ sqitch Official Med RiskSqitch (sqitch) tracks database changes in a sqitch.plan DAG rather than numbered migration files, pairing every change with native SQL deploy, revert, and verify scripts. It delegates execution to native DB clients (psql, mysql, sqlite3, snowsql) across engines.
brew install sqitchers/sqitch/sqitch Sqitch orchestrates local sqitch.plan files and native database client tools (psql, mysql) on disk, which fits local CLI workflows.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Deterministic exit codes on sqitch status and sqitch verify, but plain-text output lacks --json and sqitch.plan uses custom line syntax.
- Non-zero exit on
sqitch verifyfailure - No
--jsonoutput acrossstatusorplan
First-class verify and revert scripts plus --log-only and --verify rollback modes provide strong operational safety.
- Supports
sqitch deploy --verifyand--mode changerollback
Perl-based CLI requiring both Perl/CPAN dependencies (or Docker) and external native database clients (psql, mysql, sqlite3) in PATH.
- Requires native DB client binaries alongside Perl runtime; Docker image commonly used on Windows
Solves merge-conflict-prone migration numbering via dependency-aware sqitch.plan DAGs across Postgres, MySQL, Oracle, and Snowflake.
- Supports multi-engine native SQL without ORM lock-in
Mature sqitchers/sqitch community-maintained project under MIT license with steady maintenance.
- Maintained at
github.com/sqitchers/sqitchunder MIT license
Extensive POD/HTML manpages at sqitch.org/docs/, though Perl-style manual phrasing is dense for quick agent parsing.
- Full manpage suite at sqitch.org/docs
Security, Auth & Guardrails
Stores targets and engine settings in sqitch.conf / ~/.sqitch/sqitch.conf, plus native client env vars (PGPASSWORD, .pgpass, MYSQL_PWD).
MIT open-source CLI; free to use with any supported database engine.
# Sqitch Agent Rules - Always run `sqitch status` and inspect `sqitch.plan` before running `sqitch deploy`. - Include `--verify` on `sqitch deploy` and never run `sqitch revert` on production without explicit approval.
Agent-Ready Command Recipes
Safe Read-Only Queries
sqitch status db:pg://localhost/app_db
Compares the database's Sqitch registry against sqitch.plan and reports pending or deployed changes.
sqitch verify db:pg://localhost/app_db
Runs read-only verify/*.sql assertions to confirm deployed schema objects exist as expected.
Controlled Writes & Previews
sqitch deploy --verify --mode change db:pg://localhost/app_db
Applies pending changes and executes verify scripts, reverting the failing change if verification fails.
Strengths for Agents
- + Every migration pairs
deploy,revert, andverifyscripts for built-in post-deploy checks. - + Dependency-based
sqitch.planavoids timestamp/sequence collisions across parallel branches. - + Supports Postgres, MySQL, SQLite, Oracle, Snowflake, and CockroachDB.
Caveats & Pitfalls
- ! No
--jsonoutput format; agents must parse plain-text status tables. - ! Depends on Perl runtime plus external native DB client binaries (
psql,mysql, etc.) installed inPATH.