method

Store.EnableDevelopmentVersions

EnableDevelopmentVersions turns the stored documents of each resource that starts keeping versions into versioned documents as existing says, and synchronizes the database to after in the same transaction, using the executor migrations use. It refuses a database with migration history, which only ridu migrate may change.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
beforeschema.ManifestThe before value.
afterschema.ManifestThe after value.
existingmap[schema.StableID]migration.ExistingDocumentsThe existing value.

Returns

The declared result.

error

Full signature

func (backend *Store) EnableDevelopmentVersions( ctx context.Context, before, after schema.Manifest, existing map[schema.StableID]ridumigration.ExistingDocuments, ) error

Source adapters/sqlite/versions_enable.go:36

Related types

  • Store

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

  • Manifest

    An immutable versioned schema contract.

  • StableID

    A deterministic identifier for schema evolution.

  • ExistingDocuments

    ExistingDocuments is what becomes of the documents a collection or global already stores when it starts keeping versions.