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

Méthode sqlalchemy.Select.get_final_froms

Signature de la méthode get_final_froms

def get_final_froms(self) -> 'Sequence[FromClause]' 

Description

help(Select.get_final_froms)

Compute the final displayed list of :class:`_expression.FromClause`
elements.

This method will run through the full computation required to
determine what FROM elements will be displayed in the resulting
SELECT statement, including shadowing individual tables with
JOIN objects, as well as full computation for ORM use cases including
eager loading clauses.

For ORM use, this accessor returns the **post compilation**
list of FROM objects; this collection will include elements such as
eagerly loaded tables and joins.  The objects will **not** be
ORM enabled and not work as a replacement for the
:meth:`_sql.Select.select_froms` collection; additionally, the
method is not well performing for an ORM enabled statement as it
will incur the full ORM construction process.

To retrieve the FROM list that's implied by the "columns" collection
passed to the :class:`_sql.Select` originally, use the
:attr:`_sql.Select.columns_clause_froms` accessor.

To select from an alternative set of columns while maintaining the
FROM list, use the :meth:`_sql.Select.with_only_columns` method and
pass the
:paramref:`_sql.Select.with_only_columns.maintain_column_froms`
parameter.

.. versionadded:: 1.4.23 - the :meth:`_sql.Select.get_final_froms`
   method replaces the previous :attr:`_sql.Select.froms` accessor,
   which is deprecated.

.. seealso::

    :attr:`_sql.Select.columns_clause_froms`



Vous êtes un professionnel et vous avez besoin d'une formation ? Programmation Python
Les compléments
Voir le programme détaillé