MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / _copy_internals

Method _copy_internals

lib/sqlalchemy/sql/selectable.py:1826–1838  ·  view source on GitHub ↗
(
        self, clone: _CloneCallableType = _clone, **kw: Any
    )

Source from the content-addressed store, hash-verified

1824 return self.element.is_derived_from(fromclause)
1825
1826 def _copy_internals(
1827 self, clone: _CloneCallableType = _clone, **kw: Any
1828 ) -> None:
1829 existing_element = self.element
1830
1831 super()._copy_internals(clone=clone, **kw)
1832
1833 # the element clone is usually against a Table that returns the
1834 # same object. don't reset exported .c. collections and other
1835 # memoized details if it was not changed. this saves a lot on
1836 # performance.
1837 if existing_element is not self.element:
1838 self._reset_column_collection()
1839
1840 @property
1841 def _from_objects(self) -> List[FromClause]:

Callers

nothing calls this directly

Calls 2

_copy_internalsMethod · 0.45

Tested by

no test coverage detected