piccolo_orm#
- class litestar.contrib.piccolo.PiccoloDTO#
Bases:
AbstractDTO
,Generic
[T
]- classmethod generate_field_definitions(model_type: type[piccolo.table.Table]) Generator[DTOFieldDefinition, None, None] #
Generate
FieldDefinition
instances frommodel_type
.- Yields:
FieldDefinition
instances.
- classmethod detect_nested_field(field_definition: FieldDefinition) bool #
Return
True
iffield_definition
represents a nested model field.- Parameters:
field_definition¶ – inspect type to determine if field represents a nested model.
- Returns:
True
iffield_definition
represents a nested model field.