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_literal_param

Signature de la méthode process_literal_param

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

Description

help(TypeDecorator.process_literal_param)

Receive a literal parameter value to be rendered inline within
a statement.

.. note::

    This method is called during the **SQL compilation** phase of a
    statement, when rendering a SQL string. Unlike other SQL
    compilation methods, it is passed a specific Python value to be
    rendered as a string. However it should not be confused with the
    :meth:`_types.TypeDecorator.process_bind_param` method, which is
    the more typical method that processes the actual value passed to a
    particular parameter at statement execution time.

Custom subclasses of :class:`_types.TypeDecorator` should override
this method to provide custom behaviors for incoming data values
that are in the special case of being rendered as literals.

The returned string will be rendered into the output string.



Vous êtes un professionnel et vous avez besoin d'une formation ? Sensibilisation à
l'Intelligence Artificielle
Voir le programme détaillé