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 ? Deep Learning avec Python
et Keras et Tensorflow
Voir le programme détaillé
Classe « TypeDecorator »

Méthode sqlalchemy.TypeDecorator.process_result_value

Signature de la méthode process_result_value

def process_result_value(self, value: 'Optional[Any]', dialect: 'Dialect') -> 'Optional[_T]' 

Description

help(TypeDecorator.process_result_value)

Receive a result-row column value to be converted.

Custom subclasses of :class:`_types.TypeDecorator` should override
this method to provide custom behaviors for data values
being received in result rows coming from the database.
This method is called at **result fetching time** and is passed
the literal Python data value that's extracted from a database result
row.

The operation could be anything desired to perform custom
behavior, such as transforming or deserializing data.

:param value: Data to operate upon, of any type expected by
 this method in the subclass.  Can be ``None``.
:param dialect: the :class:`.Dialect` in use.

.. seealso::

    :ref:`types_typedecorator`

    :meth:`_types.TypeDecorator.process_bind_param`




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