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

Method _factory

lib/sqlalchemy/sql/selectable.py:2102–2109  ·  view source on GitHub ↗
(
        cls,
        selectable: Union[SelectBase, _FromClauseArgument],
        name: Optional[str] = None,
    )

Source from the content-addressed store, hash-verified

2100
2101 @classmethod
2102 def _factory(
2103 cls,
2104 selectable: Union[SelectBase, _FromClauseArgument],
2105 name: Optional[str] = None,
2106 ) -> LateralFromClause:
2107 return coercions.expect(
2108 roles.FromClauseRole, selectable, explicit_subquery=True
2109 ).lateral(name=name)
2110
2111
2112class TableSample(FromClauseAlias):

Callers

nothing calls this directly

Calls 1

lateralMethod · 0.45

Tested by

no test coverage detected