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 from model_type.

Yields:

FieldDefinition instances.

classmethod detect_nested_field(field_definition: FieldDefinition) bool#

Return True if field_definition represents a nested model field.

Parameters:

field_definition – inspect type to determine if field represents a nested model.

Returns:

True if field_definition represents a nested model field.