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

Method _anon_key_label

lib/sqlalchemy/sql/elements.py:1786–1800  ·  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

1784
1785 @util.memoized_property
1786 def _anon_key_label(self) -> _anonymous_label:
1787 """Provides a constant 'anonymous key label' for this ColumnElement.
1788
1789 Compare to ``anon_label``, except that the "key" of the column,
1790 if available, is used to generate the label.
1791
1792 This is used when a deduplicating key is placed into the columns
1793 collection of a selectable.
1794
1795 .. versionchanged:: 1.4.9 - this attribute was not intended to be
1796 public and is renamed to _anon_key_label. anon_key_label exists
1797 for backwards compat
1798
1799 """
1800 return self._anon_label(self._proxy_key)
1801
1802 @property
1803 @util.deprecated(

Callers

nothing calls this directly

Calls 1

_anon_labelMethod · 0.95

Tested by

no test coverage detected