MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / Composite

Class Composite

lib/sqlalchemy/orm/descriptor_props.py:920–936  ·  view source on GitHub ↗

Declarative-compatible front-end for the :class:`.CompositeProperty` class. Public constructor is the :func:`_orm.composite` function. .. versionchanged:: 2.0 Added :class:`_orm.Composite` as a Declarative compatible subclass of :class:`_orm.CompositeProperty`. .. seealso::

Source from the content-addressed store, hash-verified

918
919
920class Composite(CompositeProperty[_T], _DeclarativeMapped[_T]):
921 """Declarative-compatible front-end for the :class:`.CompositeProperty`
922 class.
923
924 Public constructor is the :func:`_orm.composite` function.
925
926 .. versionchanged:: 2.0 Added :class:`_orm.Composite` as a Declarative
927 compatible subclass of :class:`_orm.CompositeProperty`.
928
929 .. seealso::
930
931 :ref:`mapper_composite`
932
933 """
934
935 inherit_cache = True
936 """:meta private:"""
937
938
939class ConcreteInheritedProperty(DescriptorProperty[_T]):

Callers 1

compositeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected