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

Method _truncate_bindparam

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

Source from the content-addressed store, hash-verified

3941 )
3942
3943 def _truncate_bindparam(self, bindparam):
3944 if bindparam in self.bind_names:
3945 return self.bind_names[bindparam]
3946
3947 bind_name = bindparam.key
3948 if isinstance(bind_name, elements._truncated_label):
3949 bind_name = self._truncated_identifier("bindparam", bind_name)
3950
3951 # add to bind_names for translation
3952 self.bind_names[bindparam] = bind_name
3953
3954 return bind_name
3955
3956 def _truncated_identifier(
3957 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