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

Method _convert_to_unique

lib/sqlalchemy/sql/elements.py:2183–2188  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2181 )
2182
2183 def _convert_to_unique(self):
2184 if not self.unique:
2185 self.unique = True
2186 self.key = _anonymous_label.safe_construct(
2187 id(self), self._orig_key or "param", sanitize_key=True
2188 )
2189
2190 def __getstate__(self):
2191 """execute a deferred value for serialization purposes."""

Callers 2

visit_bindparamMethod · 0.80

Calls 1

safe_constructMethod · 0.80

Tested by 1