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

Method has_alias

sqlparse/sql.py:355–357  ·  view source on GitHub ↗

Returns ``True`` if an alias is present.

(self)

Source from the content-addressed store, hash-verified

353 self.tokens.insert(nidx, token)
354
355 def has_alias(self):
356 """Returns ``True`` if an alias is present."""
357 return self.get_alias() is not None
358
359 def get_alias(self):
360 """Returns the alias for this identifier or ``None``."""

Callers 2

test_issue489_tzcastsFunction · 0.80

Calls 1

get_aliasMethod · 0.95

Tested by 2

test_issue489_tzcastsFunction · 0.64