function
BuildArtifact
Use embedded Atlas planning plus confirmed semantic rename intent to build an immutable migration artifact.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
name | string | The name value. |
before | *schema.Manifest | The before value. |
after | schema.Manifest | The after value. |
options | ArtifactOptions | The options value. |
Returns
The declared result.
(migration.Artifact, error)How it works
allowDestructive admits reviewed Atlas-confirmed destructive work; some unsafe semantic transitions still fail closed. Prefer ridu migrate create, which records and reviews this contract.
Full signature
func BuildArtifact(
ctx context.Context,
name string,
before *schema.Manifest,
after schema.Manifest,
options ArtifactOptions,
) (ridumigration.Artifact, error)Related types
ManifestAn immutable versioned schema contract.
ArtifactOptionsArtifactOptions are the reviewed decisions a PostgreSQL migration records beyond its before and after manifests.
ArtifactThe immutable definition of one migration.