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

Méthode sqlalchemy.BindParameter.render_literal_execute

Signature de la méthode render_literal_execute

def render_literal_execute(self) -> 'BindParameter[_T]' 

Description

help(BindParameter.render_literal_execute)

Produce a copy of this bound parameter that will enable the
:paramref:`_sql.BindParameter.literal_execute` flag.

The :paramref:`_sql.BindParameter.literal_execute` flag will
have the effect of the parameter rendered in the compiled SQL
string using ``[POSTCOMPILE]`` form, which is a special form that
is converted to be a rendering of the literal value of the parameter
at SQL execution time.    The rationale is to support caching
of SQL statement strings that can embed per-statement literal values,
such as LIMIT and OFFSET parameters, in the final SQL string that
is passed to the DBAPI.   Dialects in particular may want to use
this method within custom compilation schemes.

.. versionadded:: 1.4.5

.. seealso::

    :ref:`engine_thirdparty_caching`



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é