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 « TypeDecorator »

Méthode sqlalchemy.TypeDecorator.literal_processor

Signature de la méthode literal_processor

def literal_processor(self, dialect: 'Dialect') -> 'Optional[_LiteralProcessorType[_T]]' 

Description

help(TypeDecorator.literal_processor)

Provide a literal processing function for the given
:class:`.Dialect`.

This is the method that fulfills the :class:`.TypeEngine`
contract for literal value conversion which normally occurs via
the :meth:`_types.TypeEngine.literal_processor` method.

.. note::

    User-defined subclasses of :class:`_types.TypeDecorator` should
    **not** implement this method, and should instead implement
    :meth:`_types.TypeDecorator.process_literal_param` so that the
    "inner" processing provided by the implementing type is maintained.



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