Skip to main content

sim_relation_migrate/
lib.rs

1//! Checked relational schema evolution.
2//!
3//! Migration programs are admitted before a provider sees them. Admission
4//! proves a single revision chain, exact schema transitions, typed backfills,
5//! and the declared final target.
6//!
7//! ```
8//! use sim_relation_migrate::{derive_lossless, OperationKind};
9//! use sim_relation_schema::{fixtures, AcceptAllValues};
10//! let schema = fixtures::document(&AcceptAllValues).unwrap();
11//! assert!(derive_lossless(&schema, &schema).unwrap().is_empty());
12//! let _: Option<OperationKind> = None;
13//! ```
14
15#![forbid(unsafe_code)]
16#![deny(missing_docs)]
17
18mod migration;
19
20pub use migration::*;