MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / is_subselect

Function is_subselect

web/pgadmin/utils/sqlautocomplete/parseutils/tables.py:20–32  ·  view source on GitHub ↗
(parsed)

Source from the content-addressed store, hash-verified

18# This code is borrowed from sqlparse example script.
19# <url>
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() in (
25 "SELECT",
26 "INSERT",
27 "UPDATE",
28 "CREATE",
29 "DELETE",
30 ):
31 return True
32 return False
33
34
35def _identifier_is_function(identifier):

Callers 1

extract_from_partFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected