MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _get_reference_cte

Method _get_reference_cte

lib/sqlalchemy/sql/selectable.py:2362–2368  ·  view source on GitHub ↗

A recursive CTE is updated to attach the recursive part. Updated CTEs should still refer to the original CTE. This function returns this reference identifier.

(self)

Source from the content-addressed store, hash-verified

2360 )
2361
2362 def _get_reference_cte(self) -> CTE[_KeyColCC_co]:
2363 """
2364 A recursive CTE is updated to attach the recursive part.
2365 Updated CTEs should still refer to the original CTE.
2366 This function returns this reference identifier.
2367 """
2368 return self._restates if self._restates is not None else self
2369
2370 if TYPE_CHECKING:
2371

Callers 2

visit_cteMethod · 0.80
_render_cte_clauseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected