function

CreateArtifact

CreateArtifact derives the predecessor from committed history and writes a deterministic artifact for the current PostgreSQL planner.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
directorystringThe directory value.
namestringThe name value.
afterschema.ManifestThe after value.
nowtime.TimeThe now value.
optionsArtifactOptionsThe options value.

Returns

The declared result.

(CreatedArtifact, error)

Full signature

func CreateArtifact( ctx context.Context, directory, name string, after schema.Manifest, now time.Time, options ArtifactOptions, ) (CreatedArtifact, error)

Source adapters/postgres/atlas_migration.go:147

Related types

  • Manifest

    An immutable versioned schema contract.

  • ArtifactOptions

    ArtifactOptions are the reviewed decisions a PostgreSQL migration records beyond its before and after manifests.

  • CreatedArtifact

    CreatedArtifact is the immutable file and plan produced by CreateArtifact.