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

Method c

lib/sqlalchemy/sql/selectable.py:903–912  ·  view source on GitHub ↗

A synonym for :attr:`.FromClause.columns` :return: a :class:`.ColumnCollection`

(self)

Source from the content-addressed store, hash-verified

901
902 @util.ro_memoized_property
903 def c(self) -> ReadOnlyColumnCollection[str, KeyedColumnElement[Any]]:
904 """
905 A synonym for :attr:`.FromClause.columns`
906
907 :return: a :class:`.ColumnCollection`
908
909 """
910 if "_columns" not in self.__dict__:
911 self._setup_collections()
912 return self._columns.as_readonly()
913
914 def _setup_collections(self) -> None:
915 with util.mini_gil:

Callers

nothing calls this directly

Calls 2

_setup_collectionsMethod · 0.95
as_readonlyMethod · 0.45

Tested by

no test coverage detected