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 ? RAG (Retrieval-Augmented Generation)
et Fine Tuning d'un LLM
Voir le programme détaillé
Classe « ColumnCollection »

Méthode sqlalchemy.ColumnCollection.corresponding_column

Signature de la méthode corresponding_column

def corresponding_column(self, column: '_COL', require_embedded: 'bool' = False) -> 'Optional[Union[_COL, _COL_co]]' 

Description

help(ColumnCollection.corresponding_column)

Given a :class:`_expression.ColumnElement`, return the exported
:class:`_expression.ColumnElement` object from this
:class:`_expression.ColumnCollection`
which corresponds to that original :class:`_expression.ColumnElement`
via a common
ancestor column.

:param column: the target :class:`_expression.ColumnElement`
              to be matched.

:param require_embedded: only return corresponding columns for
 the given :class:`_expression.ColumnElement`, if the given
 :class:`_expression.ColumnElement`
 is actually present within a sub-element
 of this :class:`_expression.Selectable`.
 Normally the column will match if
 it merely shares a common ancestor with one of the exported
 columns of this :class:`_expression.Selectable`.

.. seealso::

    :meth:`_expression.Selectable.corresponding_column`
    - invokes this method
    against the collection returned by
    :attr:`_expression.Selectable.exported_columns`.

.. versionchanged:: 1.4 the implementation for ``corresponding_column``
   was moved onto the :class:`_expression.ColumnCollection` itself.



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é