replay

command
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Command replay is the ADR-0019 S1 data-migration CLI: it replays a tq fact journal — the hand-rolled store's database — into a fresh go-cqrs-lite engine store and verifies projection equality. The logic lives in the importable sibling package internal/queue/sqlitev4/migration (shared with the on-open auto-upgrade); this main only owns flags and exit codes.

Usage:

go run ./replay --from <old.db> --to <new.db> [--verify-only]

Exit 0 on a green report, 1 on any projection mismatch, 2 on setup errors. The tool never writes to the source database.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL