function

CreateArtifactWithOptions

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

Publish the current MongoDB planner 2.0.0 artifact with reviewed semantic intent.

Source adapters/mongodb/migrations.go:88

@param ctx
The ctx value.
@param directory
The directory value.
@param name
The name value.
@param after
The after value.
@param now
The now value.
@param options
The options value.
@returns
The declared result.

This is the creator used by ridu migrate create. It validates the immutable prefix, freezes confirmed renames and transform descriptors, records reviewed retirement/destructive findings, and never opens MongoDB.

Related types

  • Manifest

    An immutable versioned schema contract.

  • ArtifactOptions

    Reviewed semantic intent frozen into a planner 2.0.0 artifact.

  • CreatedArtifact

    The stable filesystem identity of one newly published artifact.