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 compléments
Voir le programme détaillé
Classe « Executable »

Méthode sqlalchemy.Executable.options

Signature de la méthode options

def options(self, *options: 'ExecutableOption') -> 'Self' 

Description

help(Executable.options)

Apply options to this statement.

In the general sense, options are any kind of Python object
that can be interpreted by the SQL compiler for the statement.
These options can be consumed by specific dialects or specific kinds
of compilers.

The most commonly known kind of option are the ORM level options
that apply "eager load" and other loading behaviors to an ORM
query.   However, options can theoretically be used for many other
purposes.

For background on specific kinds of options for specific kinds of
statements, refer to the documentation for those option objects.

.. versionchanged:: 1.4 - added :meth:`.Executable.options` to
   Core statement objects towards the goal of allowing unified
   Core / ORM querying capabilities.

.. seealso::

    :ref:`loading_columns` - refers to options specific to the usage
    of ORM queries

    :ref:`relationship_loader_options` - refers to options specific
    to the usage of ORM queries



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é