serialization

class advanced_alchemy.extensions.litestar.plugins.serialization.SQLAlchemySerializationPlugin[source]

Bases: SerializationPluginProtocol, SlotsBase

__init__() None[source]
supports_type(field_definition: FieldDefinition) bool[source]

Given a value of indeterminate type, determine if this value is supported by the plugin.

Parameters:

field_definition – A parsed type.

Returns:

Whether the type is supported by the plugin.

create_dto_for_type(field_definition: FieldDefinition) type[SQLAlchemyDTO[Any]][source]

Given a parsed type, create a DTO class.

Parameters:

field_definition – A parsed type.

Returns:

A DTO class.