function

CreateArtifact

Plan and atomically write one immutable SQLite migration artifact.

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/sqlite/migrations.go:113

Related types

  • Manifest

    An immutable versioned schema contract.

  • ArtifactOptions

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

  • CreatedArtifact

    The stable filesystem identity of a newly committed artifact.