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

Function extract_query_values

evaluation/test-suite-sql-eval/parse.py:102–105  ·  view source on GitHub ↗
(sql: str)

Source from the content-addressed store, hash-verified

100# extract the non-value tokens and the set of values
101# from a sql query
102def extract_query_values(sql: str) -> Tuple[List[str], Set[str]]:
103 reformated = reformat_query(query=sql)
104 query_value_replaced, values = replace_values(reformated)
105 return query_value_replaced, values
106
107
108# plug in the values into query with value slots

Callers 1

Calls 2

reformat_queryFunction · 0.85
replace_valuesFunction · 0.85

Tested by

no test coverage detected