MCPcopy Index your code
hub / github.com/andialbrecht/sqlparse / get_real_name

Method get_real_name

sqlparse/sql.py:19–23  ·  view source on GitHub ↗

Returns the real name (object name) of this identifier.

(self)

Source from the content-addressed store, hash-verified

17 """Implements get_real_name and get_alias."""
18
19 def get_real_name(self):
20 """Returns the real name (object name) of this identifier."""
21 # a.b
22 dot_idx, _ = self.token_next_by(m=(T.Punctuation, '.'))
23 return self._get_first_name(dot_idx, real_name=True)
24
25 def get_alias(self):
26 """Returns the alias for this identifier or ``None``."""

Callers

nothing calls this directly

Calls 2

token_next_byMethod · 0.80
_get_first_nameMethod · 0.80

Tested by

no test coverage detected