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

Function get_sql

hardness_eval.py:583–588  ·  view source on GitHub ↗
(schema, query)

Source from the content-addressed store, hash-verified

581
582
583def get_sql(schema, query):
584 toks = tokenize(query)
585 tables_with_alias = get_tables_with_alias(schema.schema, toks)
586 _, sql = parse_sql(toks, 0, tables_with_alias, schema)
587
588 return sql
589
590
591def skip_semicolon(toks, start_idx):

Callers 1

get_hardnessFunction · 0.70

Calls 3

tokenizeFunction · 0.70
get_tables_with_aliasFunction · 0.70
parse_sqlFunction · 0.70

Tested by

no test coverage detected