Skip to main content

Crate sim_relation_schema

Crate sim_relation_schema 

Source
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§

AcceptAllValues
Validator useful when expression values have already been Shape-checked upstream.
CheckConstraint
A table-local check and the columns in its scope.
Column
A logical column declaration.
ColumnBuilder
Compact column builder.
DefaultValue
A literal default checked through its logical domain Shape.
ForeignKey
An ordered foreign-key mapping.
GeneratedValue
A generated expression and the columns it reads.
Index
An index whose column order is semantic.
PhysicalColumn
A normalized provider-observed column.
PhysicalIndex
A normalized provider-observed index.
PhysicalSchema
Immutable normalized evidence observed from a live provider catalog.
PhysicalTable
A normalized provider-observed table.
PrimaryKey
An ordered primary key.
Schema
Complete provider-neutral schema intent.
SchemaBuilder
Compact complete-schema builder.
Table
A validated table declaration.
TableBuilder
Compact table builder.
UniqueConstraint
An ordered unique key.
View
A logical view and its table/view dependencies.

Enums§

Constraint
A table constraint.
SchemaError
A schema refusal, reported before codec/provider dispatch.

Traits§

ValueShapeValidator
Injected runtime boundary for checking a Datum through a domain Shape.