MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / lateral

Method lateral

lib/sqlalchemy/sql/selectable.py:3809–3820  ·  view source on GitHub ↗

Return a LATERAL alias of this :class:`_expression.Selectable`. The return value is the :class:`_expression.Lateral` construct also provided by the top-level :func:`_expression.lateral` function. .. seealso:: :ref:`tutorial_lateral_correlation` - overview of u

(self, name: Optional[str] = None)

Source from the content-addressed store, hash-verified

3807 return self.scalar_subquery().label(name)
3808
3809 def lateral(self, name: Optional[str] = None) -> LateralFromClause:
3810 """Return a LATERAL alias of this :class:`_expression.Selectable`.
3811
3812 The return value is the :class:`_expression.Lateral` construct also
3813 provided by the top-level :func:`_expression.lateral` function.
3814
3815 .. seealso::
3816
3817 :ref:`tutorial_lateral_correlation` - overview of usage.
3818
3819 """
3820 return Lateral._factory(self, name)
3821
3822 def subquery(self, name: Optional[str] = None) -> Subquery:
3823 """Return a subquery of this :class:`_expression.SelectBase`.

Callers

nothing calls this directly

Calls 1

_factoryMethod · 0.45

Tested by

no test coverage detected