Skip to main content

Module state

Module state 

Source
Expand description

Migration state backend seam.

MigrationStateStore is the trait that abstracts applied-state storage. Two implementations exist:

schema is the public, canonical description of the TypeDB types owned by the default store. Bootstrap and language bindings both consume that same [SchemaInfo][type_bridge_orm::_schema::SchemaInfo].

Re-exports§

pub use memory::InMemoryStateStore;
pub use schema::MigrationStateSchemaKind;
pub use schema::applied_migration_entity_label;
pub use schema::is_migration_state_type;
pub use schema::migration_state_schema;
pub use typedb::LegacyCutoverSentinelError;
pub use typedb::LegacyCutoverSentinelExpectation;
pub use typedb::TypeDbStateStore;
pub use typedb::VerifiedLegacyAppliedPartition;
pub use typedb::require_legacy_writer_open;
pub use typedb::require_legacy_writer_open_in_transaction;

Modules§

memory
In-memory MigrationStateStore implementation for Rust unit tests.
schema
Canonical TypeBridge migration-state schema contract.
typedb
TypeDB-backed MigrationStateStore implementation.

Structs§

MigrationExecutorInfo
Best-effort executor identity stored with migration run-log rows.
MigrationRunRecord
Append/update record for one migration execution attempt.

Constants§

LEGACY_CUTOVER_SENTINEL_APPLIED_AT
Deterministic TypeDB datetime carried by the V2 cutover sentinel.
LEGACY_CUTOVER_SENTINEL_APP_LABEL
Reserved applied-ledger application label for the V2 cutover sentinel.
LEGACY_CUTOVER_SENTINEL_MIGRATION_ID
Reserved applied-ledger key for the V2 cutover sentinel.
LEGACY_CUTOVER_SENTINEL_NAME
Reserved applied-ledger migration name for the V2 cutover sentinel.
LEGACY_WRITER_CUTOVER_MESSAGE
Stable error text returned when an exact, anchor-bound cutover is observed.

Traits§

MigrationStateStore
Seam trait for migration applied-state storage.

Functions§

collect_executor_info
Collect best-effort executor identity for audit logging.
finished_run_record
Return a finished copy of a migration run-log record.
migration_timestamp_now
Return the current UTC timestamp in the TypeDB datetime literal format.
started_run_record
Create a started run-log record for a planned migration execution.