function
InspectArtifacts
Report immutable migration state without creating or changing the selected SQLite database.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
path | string | The path value. |
directory | string | The directory value. |
executableManifest | schema.Manifest | The 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)Related types
ManifestAn immutable versioned schema contract.
MigrationStatusOne immutable artifact relative to the SQLite ledger.