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

Method get_window

sqlparse/sql.py:636–641  ·  view source on GitHub ↗

Return the window if it exists.

(self)

Source from the content-addressed store, hash-verified

634 return result
635
636 def get_window(self):
637 """Return the window if it exists."""
638 over_clause = self.token_next_by(i=Over)
639 if not over_clause:
640 return None
641 return over_clause[1].tokens[-1]
642
643
644class Begin(TokenList):

Callers 1

test_grouping_functionFunction · 0.80

Calls 1

token_next_byMethod · 0.80

Tested by 1

test_grouping_functionFunction · 0.64