Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « sqlalchemy.orm »

Classe « MapperProperty »

Informations générales

Héritage

builtins.object
    MemoizedSlots
builtins.object
    InspectionAttr
builtins.object
    _MappedAttribute
builtins.object
    HasCacheKey
        MapperProperty

Définition

class MapperProperty(HasCacheKey, _MappedAttribute, InspectionAttr, MemoizedSlots):

Description [extrait de MapperProperty.__doc__]

Represent a particular class attribute mapped by :class:`_orm.Mapper`.

    The most common occurrences of :class:`.MapperProperty` are the
    mapped :class:`_schema.Column`, which is represented in a mapping as
    an instance of :class:`.ColumnProperty`,
    and a reference to another class produced by :func:`_orm.relationship`,
    represented in the mapping as an instance of
    :class:`.RelationshipProperty`.

    

Constructeur(s)

Signature du constructeur Description
__init__(self)

Liste des attributs statiques

Nom de l'attribut Valeur
cascadefrozenset()
extension_typesymbol('NOT_EXTENSION')
info<member 'info' of 'MapperProperty' objects>
is_aliased_classFalse
is_attributeFalse
is_bundleFalse
is_clause_elementFalse
is_instanceFalse
is_mapperFalse
is_propertyTrue
is_selectableFalse
key<member 'key' of 'MapperProperty' objects>
parent<member 'parent' of 'MapperProperty' objects>

Liste des propriétés

Nom de la propriétéDescription
class_attributeReturn the class-bound descriptor corresponding to this [extrait de __doc__]

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__repr__(self)
cascade_iterator(self, type_, state, dict_, visited_states, halt_on=None) Iterate through instances related to the given instance for [extrait de cascade_iterator.__doc__]
create_row_processor(self, context, query_entity, path, mapper, result, adapter, populators) Produce row processing functions and append to the given [extrait de create_row_processor.__doc__]
do_init(self) Perform subclass-specific initialization post-mapper-creation [extrait de do_init.__doc__]
init(self) Called after all mappers are created to assemble [extrait de init.__doc__]
instrument_class(self, mapper) Hook called by the Mapper to the property to initiate [extrait de instrument_class.__doc__]
merge(self, session, source_state, source_dict, dest_state, dest_dict, load, _recursive, _resolve_conflict_map) Merge the attribute represented by this ``MapperProperty`` [extrait de merge.__doc__]
post_instrument_class(self, mapper) Perform instrumentation adjustments that need to occur [extrait de post_instrument_class.__doc__]
set_parent(self, parent, init) Set the parent mapper that references this MapperProperty. [extrait de set_parent.__doc__]
setup(self, context, query_entity, path, adapter, **kwargs) Called by Query for the purposes of constructing a SQL statement. [extrait de setup.__doc__]

Méthodes héritées de la classe MemoizedSlots

__getattr__, __init_subclass__, __subclasshook__

Méthodes héritées de la classe object

__delattr__, __dir__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__