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 ? Programmation Python
Les fondamentaux
Voir le programme détaillé
Classe « Result »

Méthode sqlalchemy.Result.freeze

Signature de la méthode freeze

def freeze(self) -> 'FrozenResult[_TP]' 

Description

help(Result.freeze)

Return a callable object that will produce copies of this
:class:`_engine.Result` when invoked.

The callable object returned is an instance of
:class:`_engine.FrozenResult`.

This is used for result set caching.  The method must be called
on the result when it has been unconsumed, and calling the method
will consume the result fully.   When the :class:`_engine.FrozenResult`
is retrieved from a cache, it can be called any number of times where
it will produce a new :class:`_engine.Result` object each time
against its stored set of rows.

.. seealso::

    :ref:`do_orm_execute_re_executing` - example usage within the
    ORM to implement a result-set cache.



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