MCPcopy
hub / github.com/andialbrecht/sqlparse / get_name

Method get_name

sqlparse/sql.py:363–370  ·  view source on GitHub ↗

Returns the name of this identifier. This is either it's alias or it's real name. The returned valued can be considered as the name under which the object corresponding to this identifier is known within the current statement.

(self)

Source from the content-addressed store, hash-verified

361 return None
362
363 def get_name(self):
364 """Returns the name of this identifier.
365
366 This is either it's alias or it's real name. The returned valued can
367 be considered as the name under which the object corresponding to
368 this identifier is known within the current statement.
369 """
370 return self.get_alias() or self.get_real_name()
371
372 def get_real_name(self):
373 """Returns the real name (object name) of this identifier."""

Calls 2

get_aliasMethod · 0.95
get_real_nameMethod · 0.95