module

Prostore::Migration::CLI

CLI helpers (bin/prostore).

Operator-facing surface: status, abort, drift check. Each takes a Prostore::Connection and writes to an IO so callers can compose them into a CLI binary or call them programmatically from tests.

Instance methods

abort(conn : Connection, migration_id : Int64, io : IO = STDOUT) : Nil

Abort an in-progress migration. Marks the migration aborted and releases its lease. Per ADR-0009, completed steps are not reversed — operators must use the removal lifecycle (ADR-0008) for full revert.

Source
drift_check(conn : Connection, io : IO = STDOUT) : Nil

Dry-run drift detection without applying any DDL.

Source
status(conn : Connection, io : IO = STDOUT) : Nil

Print the current migration state. Lists in-progress and completed migrations with their step status.

Source