Module
migration
github.com/riducms/ridu/migration — Advanced, database-independent vocabulary for immutable and reviewable migration artifacts.
Artifacts 7
type migration.ArtifactThe immutable definition of one migration.
constant migration.ArtifactVersionThe immutable migration artifact format emitted by this release.
type migration.ArtifactIdentityOne migration file identity used to bind an executable to committed history.
migration.DigestArtifactHistory()Hash one complete ordered migration filename/digest history.
migration.NewArtifact()Create an artifact shell with embedded manifest lineage.
migration.DecodeArtifact()Strictly decode and validate supported artifact JSON.
migration.DigestManifest()Hash canonical manifest bytes with SHA-256.
Review model 10
type migration.RiskA stable machine-readable planning finding.
type migration.RiskLevelNotice, warning, or destructive operational impact.
type migration.StepKindThe closed migration executor vocabulary.
type migration.RenameExplicit committed content-identity intent.
type migration.FieldRenameOne explicit authored field-path continuity inside a collection rename.
type migration.OperationOne physical or semantic planner operation before checkpointed phases are built.
type migration.AuthIdentityResourceOne authored authentication identity field bound to immutable schema identity.
type migration.PluginStepOne checksum-protected direction of a plugin-owned migration.
migration.PluginStepChecksum()Compute the stable identity of ordered plugin SQL.
type migration.DataTransformDescriptorImmutable artifact identity for one compiled migration callback.
Execution 17
interface migration.DataTransactionTransaction-bound content operations available to a compiled migration callback.
type migration.DataTransformCallbackOne compiled direction of a reviewed data migration.
type migration.DataTransformExecutable up and down callbacks bound to an immutable descriptor.
migration.DataTransformChecksum()Compute the lowercase SHA-256 identity of reviewed callback source bytes.
type migration.ProjectActionLifecycle operation delegated to an application’s compiled migration driver.
type migration.ProjectRequestStructural paths selected by a portable project migration command.
interface migration.ProjectDriverApplication-compiled callbacks behind adapter-owned project migration commands.
type migration.PhaseOne resumable execution boundary.
type migration.PlannerPlanner name and version recorded on a migration artifact.
type migration.PhaseModeThe transaction boundary for a resumable phase.
type migration.StepOne stable independently ledgered executor invocation.
migration.MarshalStepPayload()Encode a compact deterministic typed step payload.
migration.PhysicalDigestSeed()Create the initial reviewed physical-contract digest.
migration.PhasePhysicalDigest()Advance the physical contract through one complete phase.
type migration.Runner contractsExecution contract constants.
migration.AuthIdentityResources()Return the deterministic complete authentication-identity field scope for a manifest snapshot.
migration.RetainedAuthIdentityResources()Return identity fields unchanged across two manifest snapshots.
Payloads 14
type migration.SQLPayloadOne transactional SQL statement.
type migration.RenamePayloadExplicit content-identity continuity payload.
type migration.PluginPayloadChecksum-protected plugin SQL payload.
type migration.DataTransformPayloadArtifact-safe identity for one application-compiled callback.
type migration.BackfillReferencesPayloadResumable keyset-batch reference backfill settings.
type migration.RetireResourcesPayloadStable resource identities retired by one bounded cleanup.
type migration.CanonicalizeAuthIdentitiesPayloadAuth identity fields moved to the shared canonical-key contract.
type migration.AssertSchemaPayloadThe closed marker payload for a reviewed physical-schema assertion.
type migration.ConcurrentIndexActionA closed create or drop action for a non-transactional index phase.
type migration.ConcurrentIndexPayloadA structured concurrent-index operation without free-form non-transaction SQL.
type migration.MongoDBCreateIndexPayloadPhysical identity for one planner-owned MongoDB index.
type migration.MongoDBDropIndexPayloadPhysical identity for one exact planner-owned MongoDB index removal.
type migration.MongoDBRenameResourcePayloadOne confirmed MongoDB collection-identity move without serialized namespace names.
type migration.MongoDBDropResourcesPayloadThe exact reviewed stable identities whose MongoDB namespaces are retired.
Methods 9
Constants 30
constant migration.ConcurrentIndexCreatePublic constant ConcurrentIndexCreate from github.com/riducms/ridu/migration.
constant migration.ConcurrentIndexDropPublic constant ConcurrentIndexDrop from github.com/riducms/ridu/migration.
constant migration.PhaseBatchPhaseBatch executes one typed keyset executor in bounded transactions.
constant migration.PhaseNoTransactionPhaseNoTransaction executes one typed physical operation which cannot run inside a database transaction. Each operation is its own resumable phase.
constant migration.PhaseTransactionPhaseTransaction executes every phase step and its ledger completion in one database transaction.
constant migration.PhysicalContractVersionPhysicalContractVersion identifies the meaning of intermediate physical digests.
constant migration.ProjectApplyPublic constant ProjectApply from github.com/riducms/ridu/migration.
constant migration.ProjectDownPublic constant ProjectDown from github.com/riducms/ridu/migration.
constant migration.ProjectFreshPublic constant ProjectFresh from github.com/riducms/ridu/migration.
constant migration.ProjectRefreshPublic constant ProjectRefresh from github.com/riducms/ridu/migration.
constant migration.ProjectResetPublic constant ProjectReset from github.com/riducms/ridu/migration.
constant migration.ProjectVerifyPublic constant ProjectVerify from github.com/riducms/ridu/migration.
constant migration.RiskDestructiveRiskDestructive records a change that can permanently remove stored data.
constant migration.RiskNoticeRiskNotice records operational context that does not require intervention.
constant migration.RiskWarningRiskWarning records a change that deserves explicit deployment review.
constant migration.RunnerContractVersionRunnerContractVersion is the execution contract implemented by this build.
constant migration.StepAssertSchemaStepAssertSchema verifies the resulting physical schema fingerprint.
constant migration.StepBackfillReferencesStepBackfillReferences derives the current-document reference index after its physical table has been created. Version snapshots are not indexed.
constant migration.StepCanonicalizeAuthIdentitiesStepCanonicalizeAuthIdentities rewrites authored authentication identity values to store.CanonicalAuthIdentity before an adapter replaces its legacy uniqueness contract.
constant migration.StepConcurrentIndexStepConcurrentIndex executes one structured PostgreSQL concurrent-index operation outside a database transaction.
constant migration.StepDataTransformStepDataTransform invokes one application-compiled, checksum-bound callback inside the adapter's migration transaction.
constant migration.StepMongoDBAssertSchemaStepMongoDBAssertSchema verifies the complete planner-owned MongoDB catalog outside a database transaction after every physical step has completed.
constant migration.StepMongoDBCreateIndexStepMongoDBCreateIndex creates one planner-owned MongoDB index outside a database transaction. The payload freezes physical identity only; the adapter must reconstruct and exactly match the definition from the embedded manifest and versioned planner before touching a database.
constant migration.StepMongoDBDropIndexStepMongoDBDropIndex removes one planner-owned MongoDB index outside a database transaction. The adapter reconstructs the exact physical collection and index definition from the embedded manifests; the payload never carries an arbitrary command.
constant migration.StepMongoDBDropResourcesStepMongoDBDropResources removes the content and version namespaces for one exact, sorted set of reviewed retired stable identities. Framework-owned shared state is removed by the preceding transactional retirement step.
constant migration.StepMongoDBRenameResourceStepMongoDBRenameResource moves one collection identity to another outside a database transaction. Only stable manifest identities are persisted; the MongoDB adapter derives the exact content and version namespaces.
constant migration.StepPluginSQLStepPluginSQL executes one checksum-protected plugin migration.
constant migration.StepRenameContentStepRenameContent rewrites schema-addressed content after physical renames.
constant migration.StepRetireResourcesStepRetireResources removes framework-owned shared state for resources that a reviewed destructive migration removes. It is a typed semantic executor and must run before the corresponding physical tables are dropped.
constant migration.StepSQLStepSQL executes one physical schema statement.