method

Store.AdoptArtifacts

AdoptArtifacts records pending migrations as applied, without running them, through the newest one whose schema the database already has, such as a database ridu dev synchronized. See ridu migrate baseline.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
directorystringThe directory value.

Returns

The declared result.

([]string, error)

Full signature

func (backend *Store) AdoptArtifacts( ctx context.Context, directory string, ) ([]string, error)

Source adapters/sqlite/artifact_adopt.go:16

Related types

  • Store

    A SQLite implementation of Ridu’s document, snapshot, auth, preference, task, lock, version, and migration store contracts.