MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _get_froms

Method _get_froms

lib/sqlalchemy/sql/selectable.py:4984–5008  ·  view source on GitHub ↗
(
        self, statement: Select[Unpack[TupleAny]]
    )

Source from the content-addressed store, hash-verified

4982 return go
4983
4984 def _get_froms(
4985 self, statement: Select[Unpack[TupleAny]]
4986 ) -> List[FromClause]:
4987 ambiguous_table_name_map: _AmbiguousTableNameMap
4988 self._ambiguous_table_name_map = ambiguous_table_name_map = {}
4989
4990 return self._normalize_froms(
4991 itertools.chain(
4992 self.from_clauses,
4993 itertools.chain.from_iterable(
4994 [
4995 element._from_objects
4996 for element in statement._raw_columns
4997 ]
4998 ),
4999 itertools.chain.from_iterable(
5000 [
5001 element._from_objects
5002 for element in statement._where_criteria
5003 ]
5004 ),
5005 ),
5006 check_statement=statement,
5007 ambiguous_table_name_map=ambiguous_table_name_map,
5008 )
5009
5010 @classmethod
5011 def _normalize_froms(

Callers 1

__init__Method · 0.95

Calls 2

_normalize_fromsMethod · 0.95
chainMethod · 0.45

Tested by

no test coverage detected