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
(self)
| 6008 | return self.join(target, onclause=onclause, isouter=True, full=full) |
| 6009 | |
| 6010 | def get_final_froms(self) -> Sequence[FromClause]: |
| 6011 | """Compute the final displayed list of :class:`_expression.FromClause` |
| 6012 | elements. |
| 6013 | |
| 6014 | This method will run through the full computation required to |
| 6015 | determine what FROM elements will be displayed in the resulting |
| 6016 | SELECT statement, including shadowing individual tables with |
| 6017 | JOIN objects, as well as full computation for ORM use cases including |
| 6018 | eager loading clauses. |
| 6019 | |
| 6020 | For ORM use, this accessor returns the **post compilation** |
| 6021 | list of FROM objects; this collection will include elements such as |
| 6022 | eagerly loaded tables and joins. The objects will **not** be |
| 6023 | ORM enabled and not work as a replacement for the |
| 6024 | :meth:`_sql.Select.select_froms` collection; additionally, the |
| 6025 | method is not well performing for an ORM enabled statement as it |
| 6026 | will incur the full ORM construction process. |
| 6027 | |
| 6028 | To retrieve the FROM list that's implied by the "columns" collection |
| 6029 | passed to the :class:`_sql.Select` originally, use the |
| 6030 | :attr:`_sql.Select.columns_clause_froms` accessor. |
| 6031 | |
| 6032 | To select from an alternative set of columns while maintaining the |
| 6033 | FROM list, use the :meth:`_sql.Select.with_only_columns` method and |
| 6034 | pass the |
| 6035 | :paramref:`_sql.Select.with_only_columns.maintain_column_froms` |
| 6036 | parameter. |
| 6037 | |
| 6038 | .. versionadded:: 1.4.23 - the :meth:`_sql.Select.get_final_froms` |
| 6039 | method replaces the previous :attr:`_sql.Select.froms` accessor, |
| 6040 | which is deprecated. |
| 6041 | |
| 6042 | .. seealso:: |
| 6043 | |
| 6044 | :attr:`_sql.Select.columns_clause_froms` |
| 6045 | |
| 6046 | """ |
| 6047 | compiler = self._default_compiler() |
| 6048 | |
| 6049 | return self._compile_state_factory(self, compiler)._get_display_froms() |
| 6050 | |
| 6051 | @property |
| 6052 | @util.deprecated( |