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

Function parse_where

evaluation/test-suite-sql-eval/process_sql.py:409–418  ·  view source on GitHub ↗
(toks, start_idx, tables_with_alias, schema, default_tables)

Source from the content-addressed store, hash-verified

407
408
409def parse_where(toks, start_idx, tables_with_alias, schema, default_tables):
410 idx = start_idx
411 len_ = len(toks)
412
413 if idx >= len_ or toks[idx] != 'where':
414 return idx, []
415
416 idx += 1
417 idx, conds = parse_condition(toks, idx, tables_with_alias, schema, default_tables)
418 return idx, conds
419
420
421def parse_group_by(toks, start_idx, tables_with_alias, schema, default_tables):

Callers 1

parse_sqlFunction · 0.70

Calls 1

parse_conditionFunction · 0.70

Tested by

no test coverage detected