MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _truncate_bindparam

Method _truncate_bindparam

lib/sqlalchemy/sql/compiler.py:4122–4133  ·  view source on GitHub ↗
(self, bindparam)

Source from the content-addressed store, hash-verified

4120 )
4121
4122 def _truncate_bindparam(self, bindparam):
4123 if bindparam in self.bind_names:
4124 return self.bind_names[bindparam]
4125
4126 bind_name = bindparam.key
4127 if isinstance(bind_name, elements._truncated_label):
4128 bind_name = self._truncated_identifier("bindparam", bind_name)
4129
4130 # add to bind_names for translation
4131 self.bind_names[bindparam] = bind_name
4132
4133 return bind_name
4134
4135 def _truncated_identifier(
4136 self, ident_class: str, name: _truncated_label

Callers 2

visit_bindparamMethod · 0.95
returning_clauseMethod · 0.80

Calls 1

_truncated_identifierMethod · 0.95

Tested by

no test coverage detected