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 ? Calcul scientifique
avec Python
Voir le programme détaillé
Classe « Mapper »

Méthode sqlalchemy.orm.Mapper.identity_key_from_instance

Signature de la méthode identity_key_from_instance

def identity_key_from_instance(self, instance: '_O') -> '_IdentityKeyType[_O]' 

Description

help(Mapper.identity_key_from_instance)

Return the identity key for the given instance, based on
its primary key attributes.

If the instance's state is expired, calling this method
will result in a database check to see if the object has been deleted.
If the row no longer exists,
:class:`~sqlalchemy.orm.exc.ObjectDeletedError` is raised.

This value is typically also found on the instance state under the
attribute name `key`.



Vous êtes un professionnel et vous avez besoin d'une formation ? Deep Learning avec Python
et Keras et Tensorflow
Voir le programme détaillé