MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _construct

Method _construct

lib/sqlalchemy/sql/selectable.py:1760–1769  ·  view source on GitHub ↗
(
        cls,
        selectable: Any,
        *,
        name: Optional[str] = None,
        **kw: Any,
    )

Source from the content-addressed store, hash-verified

1758
1759 @classmethod
1760 def _construct(
1761 cls,
1762 selectable: Any,
1763 *,
1764 name: Optional[str] = None,
1765 **kw: Any,
1766 ) -> Self:
1767 obj = cls.__new__(cls)
1768 obj._init(selectable, name=name, **kw)
1769 return obj
1770
1771 def _init(self, selectable: Any, *, name: Optional[str] = None) -> None:
1772 self.element = coercions.expect(

Callers 10

lateralMethod · 0.45
aliasMethod · 0.45
tablesampleMethod · 0.45
aliasMethod · 0.45
render_derivedMethod · 0.45
aliasMethod · 0.45
unionMethod · 0.45
union_allMethod · 0.45
cteMethod · 0.45
subqueryMethod · 0.45

Calls 2

__new__Method · 0.45
_initMethod · 0.45

Tested by

no test coverage detected