MCPcopy Create free account
hub / github.com/andialbrecht/sqlparse / is_subselect

Function is_subselect

examples/extract_table_names.py:20–26  ·  view source on GitHub ↗
(parsed)

Source from the content-addressed store, hash-verified

18
19
20def is_subselect(parsed):
21 if not parsed.is_group:
22 return False
23 for item in parsed.tokens:
24 if item.ttype is DML and item.value.upper() == 'SELECT':
25 return True
26 return False
27
28
29def extract_from_part(parsed):

Callers 1

extract_from_partFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…