function

VerifyArtifacts

Replay complete immutable history through the adapter runner in an isolated shadow database.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
configConfigThe config value.
directorystringThe directory value.
transforms[]migration.DataTransformThe transforms value.

Returns

The declared result.

error

How it works

The operational credential creates and drops a randomly named shadow database; application collections are not used. Semantic histories use VerifyArtifactsWithOptions with explicit maintenance admission because verification replays the complete history.

Full signature

func VerifyArtifacts( ctx context.Context, config Config, directory string, transforms ...ridumigration.DataTransform, ) error

Source adapters/mongodb/migration_runner.go:577

Related types

  • Config

    Runtime-only MongoDB connection behavior.

  • DataTransform

    Executable up and down callbacks bound to an immutable descriptor.