MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / Composite

Class Composite

lib/sqlalchemy/orm/descriptor_props.py:864–880  ·  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

862
863
864class Composite(CompositeProperty[_T], _DeclarativeMapped[_T]):
865 """Declarative-compatible front-end for the :class:`.CompositeProperty`
866 class.
867
868 Public constructor is the :func:`_orm.composite` function.
869
870 .. versionchanged:: 2.0 Added :class:`_orm.Composite` as a Declarative
871 compatible subclass of :class:`_orm.CompositeProperty`.
872
873 .. seealso::
874
875 :ref:`mapper_composite`
876
877 """
878
879 inherit_cache = True
880 """:meta private:"""
881
882
883class ConcreteInheritedProperty(DescriptorProperty[_T]):

Callers 1

compositeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected