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 ? Machine Learning
avec Scikit-Learn
Voir le programme détaillé
Classe « TypeDecorator »

Méthode sqlalchemy.TypeDecorator.process_bind_param

Signature de la méthode process_bind_param

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

Description

help(TypeDecorator.process_bind_param)

Receive a bound parameter value to be converted.

Custom subclasses of :class:`_types.TypeDecorator` should override
this method to provide custom behaviors for incoming data values.
This method is called at **statement execution time** and is passed
the literal Python data value which is to be associated with a bound
parameter in the statement.

The operation could be anything desired to perform custom
behavior, such as transforming or serializing data.
This could also be used as a hook for validating logic.

: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_result_value`



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é