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

Method _factory

lib/sqlalchemy/sql/selectable.py:1832–1840  ·  view source on GitHub ↗
(
        cls,
        selectable: FromClause,
        name: Optional[str] = None,
        flat: bool = False,
    )

Source from the content-addressed store, hash-verified

1830
1831 @classmethod
1832 def _factory(
1833 cls,
1834 selectable: FromClause,
1835 name: Optional[str] = None,
1836 flat: bool = False,
1837 ) -> NamedFromClause:
1838 return coercions.expect(
1839 roles.FromClauseRole, selectable, allow_select=True
1840 ).alias(name=name, flat=flat)
1841
1842
1843class TableValuedAlias(LateralFromClause, Alias):

Callers

nothing calls this directly

Calls 1

aliasMethod · 0.45

Tested by

no test coverage detected