Expand description
Validated logical schema intent and normalized physical catalog evidence.
use sim_relation_schema::{fixtures, AcceptAllValues};
let schema = fixtures::document(&AcceptAllValues).unwrap();
assert_eq!(schema.tables().len(), 2);
assert_ne!(schema.id().unwrap(), fixtures::ledger(&AcceptAllValues).unwrap().id().unwrap());Modules§
- fixtures
- Exact logical fixtures for the supported store families.
Structs§
- Accept
AllValues - Validator useful when expression values have already been Shape-checked upstream.
- Check
Constraint - A table-local check and the columns in its scope.
- Column
- A logical column declaration.
- Column
Builder - Compact column builder.
- Default
Value - A literal default checked through its logical domain Shape.
- Foreign
Key - An ordered foreign-key mapping.
- Generated
Value - A generated expression and the columns it reads.
- Index
- An index whose column order is semantic.
- Physical
Column - A normalized provider-observed column.
- Physical
Index - A normalized provider-observed index.
- Physical
Schema - Immutable normalized evidence observed from a live provider catalog.
- Physical
Table - A normalized provider-observed table.
- Primary
Key - An ordered primary key.
- Schema
- Complete provider-neutral schema intent.
- Schema
Builder - Compact complete-schema builder.
- Table
- A validated table declaration.
- Table
Builder - Compact table builder.
- Unique
Constraint - An ordered unique key.
- View
- A logical view and its table/view dependencies.
Enums§
- Constraint
- A table constraint.
- Schema
Error - A schema refusal, reported before codec/provider dispatch.
Traits§
- Value
Shape Validator - Injected runtime boundary for checking a Datum through a domain Shape.