method

Store.ReplaceBaseline

ReplaceBaseline atomically replaces a verified development artifact/step ledger. Content, snapshots, namespaces, and indexes are never changed. Replacement artifacts from the first unrecorded semantic step onward stay pending for ApplyArtifacts.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
directorystringThe directory value.
optionsmigration.BaselineReplacementOptionsThe options value.

Returns

The declared result.

([]string, error)

Full signature

func (backend *Store) ReplaceBaseline( ctx context.Context, directory string, options migration.BaselineReplacementOptions, ) ([]string, error)

Source adapters/mongodb/migration_rebaseline.go:18

Related types

  • Store

    A replica-set implementation of Ridu’s document, snapshot, auth, preference, task, lock, upload, readiness, and migration contracts.

  • BaselineReplacementOptions

    BaselineReplacementOptions controls an explicit rewrite of recorded history. PreviousDirectory must contain the immutable artifacts the database records; when empty, the replacement directory is also used as the previous history.