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 :

Vous êtes un professionnel et vous avez besoin d'une formation ? Programmation Python
Les compléments
Voir le programme détaillé
Classe « MapperProperty »

Méthode sqlalchemy.orm.MapperProperty.instrument_class

Signature de la méthode instrument_class

def instrument_class(self, mapper: 'Mapper[Any]') -> 'None' 

Description

help(MapperProperty.instrument_class)

Hook called by the Mapper to the property to initiate
instrumentation of the class attribute managed by this
MapperProperty.

The MapperProperty here will typically call out to the
attributes module to set up an InstrumentedAttribute.

This step is the first of two steps to set up an InstrumentedAttribute,
and is called early in the mapper setup process.

The second step is typically the init_class_attribute step,
called from StrategizedProperty via the post_instrument_class()
hook.  This step assigns additional state to the InstrumentedAttribute
(specifically the "impl") which has been determined after the
MapperProperty has determined what kind of persistence
management it needs to do (e.g. scalar, object, collection, etc).



Vous êtes un professionnel et vous avez besoin d'une formation ? Mise en oeuvre d'IHM
avec Qt et PySide6
Voir le programme détaillé