function

InspectArtifacts

Report immutable migration state without creating or changing the selected SQLite database.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
pathstringThe path value.
directorystringThe directory value.
executableManifestschema.ManifestThe executableManifest value.

Returns

The declared result.

([]MigrationStatus, error)

How it works

A missing database is reported with every artifact pending. Existing databases are opened read-only without adapter write pragmas or journal sidecars.

Full signature

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

Source adapters/sqlite/migrations.go:1172

Related types

  • Manifest

    An immutable versioned schema contract.

  • MigrationStatus

    One immutable artifact relative to the SQLite ledger.