Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Sqitch

$ sqitch Official Med Risk
Sqitchers · Database & Data · MIT · macos / linux / windows

Sqitch (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.

FCRS-1.0 Score
69 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install sqitchers/sqitch/sqitch
CLI vs MCP Decision CLI Preferred vs MCP

Sqitch orchestrates local sqitch.plan files and native database client tools (psql, mysql) on disk, which fits local CLI workflows.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 15 / 25

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 verify failure
  • No --json output across status or plan
Trust & Safety 20 / 25

First-class verify and revert scripts plus --log-only and --verify rollback modes provide strong operational safety.

  • Supports sqitch deploy --verify and --mode change rollback
Setup & Portability 10 / 15

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
Utility & Efficiency 11 / 15

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
Maintenance & Lineage 7 / 10

Mature sqitchers/sqitch community-maintained project under MIT license with steady maintenance.

  • Maintained at github.com/sqitchers/sqitch under MIT license
Docs & Verifiability 6 / 10

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

Auth Modes
Config File Env API Key
Credential Storage

Stores targets and engine settings in sqitch.conf / ~/.sqitch/sqitch.conf, plus native client env vars (PGPASSWORD, .pgpass, MYSQL_PWD).

Side Effects
Read-Only Local Write Remote Write Destructive
Cost & Quotas

MIT open-source CLI; free to use with any supported database engine.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Check target database deployment status
sqitch status db:pg://localhost/app_db

Compares the database's Sqitch registry against sqitch.plan and reports pending or deployed changes.

Verify already-deployed database objects
sqitch verify db:pg://localhost/app_db

Runs read-only verify/*.sql assertions to confirm deployed schema objects exist as expected.

Controlled Writes & Previews

Deploy changes with automatic revert on failure
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, and verify scripts for built-in post-deploy checks.
  • + Dependency-based sqitch.plan avoids timestamp/sequence collisions across parallel branches.
  • + Supports Postgres, MySQL, SQLite, Oracle, Snowflake, and CockroachDB.

Caveats & Pitfalls

  • ! No --json output format; agents must parse plain-text status tables.
  • ! Depends on Perl runtime plus external native DB client binaries (psql, mysql, etc.) installed in PATH.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI