catalog check-sources

Compare each entry’s recorded source schemas against the live ones.

Reports; never repairs and never infers. Bundled and pinned sources are exempt: a bundled source’s bytes are in the archive, and a pinned source reads a frozen cache artifact, which is not checked.

Exit codes (the worst leaf wins): 0 every checked source equal; any leaf this version cannot probe is named in the output 2 a source was unreachable, or a leaf or the entry itself was unreadable 3 a source changed, or its table is missing

A sweep that never started is not a verdict about any source: a name that does not resolve, or a catalog that cannot be opened, exits 1, and a usage error exits click’s own 2. Neither prints a document, so a consumer reads the sweep’s verdict off the document rather than off a bare 2.

With –json the whole sweep is buffered and printed once as a single document, so a consumer parses a complete report or none at all. Its shape is documented in xorq.catalog.drift; the exit code is the same either way. A dead source can take tens of seconds to fail, so –progress names each entry on stderr as its probe starts; stdout still carries only the document.

Usage

xorq catalog check-sources NAMES... [OPTIONS]

Arguments

  • NAMES—One or more entry names or aliases.

Options

Option Default Description
--json off Output as JSON.
--progress / --no-progress --no-progress With –json, name each entry on stderr as its probe starts. Default: on when stderr is a terminal.

Examples

xorq catalog check-sources prod-matches staging
xorq catalog check-sources prod-matches --json

See also