Expand description
Migration state backend seam.
MigrationStateStore is the trait that abstracts applied-state storage.
Two implementations exist:
memory::InMemoryStateStore— insertion-ordered, mutex-backed store used for Rust unit tests with no TypeDB connection.typedb::TypeDbStateStore— persists state over the ORMDatabaseseam.
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
MigrationStateStoreimplementation for Rust unit tests. - schema
- Canonical TypeBridge migration-state schema contract.
- typedb
- TypeDB-backed
MigrationStateStoreimplementation.
Structs§
- Migration
Executor Info - Best-effort executor identity stored with migration run-log rows.
- Migration
RunRecord - 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§
- Migration
State Store - 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.