MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _anon_key_label

Method _anon_key_label

lib/sqlalchemy/sql/elements.py:1847–1861  ·  view source on GitHub ↗

Provides a constant 'anonymous key label' for this ColumnElement. Compare to ``anon_label``, except that the "key" of the column, if available, is used to generate the label. This is used when a deduplicating key is placed into the columns collection of a selectable

(self)

Source from the content-addressed store, hash-verified

1845
1846 @util.memoized_property
1847 def _anon_key_label(self) -> _anonymous_label:
1848 """Provides a constant 'anonymous key label' for this ColumnElement.
1849
1850 Compare to ``anon_label``, except that the "key" of the column,
1851 if available, is used to generate the label.
1852
1853 This is used when a deduplicating key is placed into the columns
1854 collection of a selectable.
1855
1856 .. versionchanged:: 1.4.9 - this attribute was not intended to be
1857 public and is renamed to _anon_key_label. anon_key_label exists
1858 for backwards compat
1859
1860 """
1861 return self._anon_label(self._proxy_key)
1862
1863 @property
1864 @util.deprecated(

Callers

nothing calls this directly

Calls 1

_anon_labelMethod · 0.95

Tested by

no test coverage detected