Module embedded_struct

Module embedded_struct 

Source

Modules§

create_and_query_embedded
crud_nested_embedded
embedded_struct_with_jiff_fields
embedded_struct_with_uuid_field
partial_update_embedded_fields
partial_update_nested_embedded
query_based_partial_update_embedded
unit_enum_in_embedded_struct

Functions§

basic_embedded_struct
Tests that embedded structs are registered in the app schema but don’t create their own database tables (they’re inlined into parent models).
deeply_nested_embedded_schema
Tests deeply nested embedded types (3+ levels) to verify schema building handles arbitrary nesting depth correctly. Validates:
embedded_struct_fields_codegen
Tests code generation for embedded struct field accessors:
query_embedded_fields_comparison_ops
Tests comparison operators (gt, lt, ge, le, ne) on embedded struct fields. SQL-only: DynamoDB doesn’t support range queries on non-key attributes. Validates that all comparison operators work correctly with embedded fields.
query_embedded_multiple_fields
Tests querying by multiple embedded fields in a single query (AND conditions). SQL-only: DynamoDB requires partition key in queries. Validates that complex filters with multiple embedded fields work correctly.
query_embedded_struct_fields
Tests querying by embedded struct fields with composite keys (DynamoDB compatible). Validates:
root_model_with_embedded_field
Tests the complete schema generation and mapping for embedded fields:
update_with_embedded_field_filter
Tests UPDATE operations filtered by embedded struct fields. SQL-only: DynamoDB requires partition key in queries/updates. Validates that updates can target rows based on embedded field values.