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 ? Sensibilisation à
l'Intelligence Artificielle
Voir le programme détaillé
Classe « CacheKey »

Méthode sqlalchemy.CacheKey.to_offline_string

Signature de la méthode to_offline_string

def to_offline_string(self, statement_cache: 'MutableMapping[Any, str]', statement: 'ClauseElement', parameters: '_CoreSingleExecuteParams') -> 'str' 

Description

help(CacheKey.to_offline_string)

Generate an "offline string" form of this :class:`.CacheKey`

The "offline string" is basically the string SQL for the
statement plus a repr of the bound parameter values in series.
Whereas the :class:`.CacheKey` object is dependent on in-memory
identities in order to work as a cache key, the "offline" version
is suitable for a cache that will work for other processes as well.

The given ``statement_cache`` is a dictionary-like object where the
string form of the statement itself will be cached.  This dictionary
should be in a longer lived scope in order to reduce the time spent
stringifying statements.




Vous êtes un professionnel et vous avez besoin d'une formation ? RAG (Retrieval-Augmented Generation)
et Fine Tuning d'un LLM
Voir le programme détaillé