MCPcopy Create free account
hub / github.com/FlyingFeather/DEA-SQL / scan_alias

Function scan_alias

hardness_eval.py:179–185  ·  view source on GitHub ↗

Scan the index of 'as' and build the map for all alias

(toks)

Source from the content-addressed store, hash-verified

177
178
179def scan_alias(toks):
180 """Scan the index of 'as' and build the map for all alias"""
181 as_idxs = [idx for idx, tok in enumerate(toks) if tok == 'as']
182 alias = {}
183 for idx in as_idxs:
184 alias[toks[idx + 1]] = toks[idx - 1]
185 return alias
186
187
188def get_tables_with_alias(schema, toks):

Callers 1

get_tables_with_aliasFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected