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

Method _factory

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

Source from the content-addressed store, hash-verified

2048
2049 @classmethod
2050 def _factory(
2051 cls,
2052 selectable: Union[SelectBase, _FromClauseArgument],
2053 name: Optional[str] = None,
2054 ) -> LateralFromClause:
2055 return coercions.expect(
2056 roles.FromClauseRole, selectable, explicit_subquery=True
2057 ).lateral(name=name)
2058
2059
2060class TableSample(FromClauseAlias):

Callers

nothing calls this directly

Calls 1

lateralMethod · 0.45

Tested by

no test coverage detected