method

Store.ReplaceBaseline

ReplaceBaseline replaces a verified development ledger without running migrations or changing content. The database must already have the schema of the last replacement artifact it can record; later artifacts with data or semantic steps 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/postgres/artifact_rebaseline.go:22

Related types

  • Store

    A PostgreSQL implementation of Ridu’s document, snapshot, auth, preference, task, job, lock, upload-reference, and migration store 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.