Module embedded_enum_unit

Module embedded_enum_unit 

Source

Modules§

create_and_query_enum

Functions§

basic_embedded_enum
Tests that embedded enums are registered in the app schema but don’t create their own database tables (they’re inlined into parent models as a single column).
filter_by_enum_variant
Tests filtering records by embedded enum variant. SQL-only: DynamoDB requires a partition key in queries. Validates that enum fields can be used in WHERE clauses (comparing discriminants), and verifies the driver-level representation: the WHERE clause compares the status column to an I64 discriminant, not a string or other type.
root_model_with_embedded_enum_field
Tests the complete schema generation and mapping for an embedded enum field: