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

Method get_ordering

sqlparse/sql.py:460–463  ·  view source on GitHub ↗

Returns the ordering or ``None`` as uppercase string.

(self)

Source from the content-addressed store, hash-verified

458 return next_.value if next_ else None
459
460 def get_ordering(self):
461 """Returns the ordering or ``None`` as uppercase string."""
462 _, ordering = self.token_next_by(t=T.Keyword.Order)
463 return ordering.normalized if ordering else None
464
465 def get_array_indices(self):
466 """Returns an iterator of index token lists"""

Callers 1

Calls 1

token_next_byMethod · 0.80

Tested by 1