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
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
before | schema.Manifest | The before value. |
after | schema.Manifest | The after value. |
existing | map[schema.StableID]migration.ExistingDocuments | The existing value. |
Returns
The declared result.
errorFull signature
func (backend *Store) EnableDevelopmentVersions(
ctx context.Context,
before,
after schema.Manifest,
existing map[schema.StableID]ridumigration.ExistingDocuments,
) errorRelated types
StoreA SQLite implementation of Ridu’s document, snapshot, auth, preference, task, lock, version, and migration store contracts.
ManifestAn immutable versioned schema contract.
StableIDA deterministic identifier for schema evolution.
ExistingDocumentsExistingDocuments is what becomes of the documents a collection or global already stores when it starts keeping versions.