module Prostore::Migration::CLI

Overview

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.

Extended Modules

Defined in:

prostore/migration/cli.cr

Instance Method Summary

Instance Method Detail

def 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.


[View source]
def drift_check(conn : Connection, io : IO = STDOUT) : Nil #

Dry-run drift detection without applying any DDL.


[View source]
def status(conn : Connection, io : IO = STDOUT) : Nil #

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


[View source]