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

Method _get_reference_cte

lib/sqlalchemy/sql/selectable.py:2306–2312  ·  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

2304 )
2305
2306 def _get_reference_cte(self) -> CTE:
2307 """
2308 A recursive CTE is updated to attach the recursive part.
2309 Updated CTEs should still refer to the original CTE.
2310 This function returns this reference identifier.
2311 """
2312 return self._restates if self._restates is not None else self
2313
2314
2315class _CTEOpts(NamedTuple):

Callers 2

visit_cteMethod · 0.80
_render_cte_clauseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected