Expand description
Expected schema extraction from Model definitions.
This module provides utilities to extract the “expected” database schema from Rust Model definitions, which can then be compared against the actual database schema obtained via introspection.
Traits§
- Model
Schema - Extension trait that adds schema extraction to Model types.
- Model
Tuple - Trait for tuples of Models to aggregate their schemas.
Functions§
- expected_
schema - Build a DatabaseSchema from a single Model.
- normalize_
sql_ type - Normalize a SQL type for comparison across dialects.
- table_
schema_ from_ fields - Convert field metadata to a TableInfo.
- table_
schema_ from_ model - Extract a TableInfo from a Model type.