function

InspectArtifacts

Inspect exact local history against the live ledger without mutation.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
configConfigThe config value.
directorystringThe directory value.
executableManifestschema.ManifestThe executableManifest value.

Returns

The declared result.

([]MigrationStatus, error)

How it works

CLI plan/status validates and precompiles the exact in-memory history through the executable manifest before connecting, then uses that retained snapshot for every ledger check.

Full signature

func InspectArtifacts( ctx context.Context, config Config, directory string, executableManifest schema.Manifest, ) ([]MigrationStatus, error)

Source adapters/mongodb/migration_runner.go:495

Related types

  • Config

    Runtime-only MongoDB connection behavior.

  • Manifest

    An immutable versioned schema contract.

  • MigrationStatus

    One immutable artifact relative to the MongoDB ledger.