MCPcopy Create free account
hub / github.com/dbcli/mssql-cli / is_subselect

Function is_subselect

mssqlcli/packages/parseutils/tables.py:16–23  ·  view source on GitHub ↗
(parsed)

Source from the content-addressed store, hash-verified

14# This code is borrowed from sqlparse example script.
15# <url>
16def is_subselect(parsed):
17 if not parsed.is_group:
18 return False
19 for item in parsed.tokens:
20 if item.ttype is DML and item.value.upper() in ('SELECT', 'INSERT',
21 'UPDATE', 'CREATE', 'DELETE'):
22 return True
23 return False
24
25
26def _identifier_is_function(identifier):

Callers 1

extract_from_partFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected