method
Store.ReplaceBaseline
ReplaceBaseline replaces a verified development ledger with committed history whose physical schema is already present. It never runs migration data steps: replacement artifacts from the first unrecorded data or semantic step onward stay pending for ApplyArtifacts.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
directory | string | The directory value. |
options | migration.BaselineReplacementOptions | The options value. |
Returns
The declared result.
([]string, error)Full signature
func (backend *Store) ReplaceBaseline(
ctx context.Context,
directory string,
options migration.BaselineReplacementOptions,
) ([]string, error)Related types
StoreA SQLite implementation of Ridu’s document, snapshot, auth, preference, task, lock, version, and migration store contracts.
BaselineReplacementOptionsBaselineReplacementOptions 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.