MCPcopy Create free account
hub / github.com/caesarHQ/textSQL / get_all_table_names

Function get_all_table_names

api/app/api/utils/table_selection/table_details.py:26–31  ·  view source on GitHub ↗
(scope="USA")

Source from the content-addressed store, hash-verified

24 return extracted_text
25
26def get_all_table_names(scope="USA") -> List[str]:
27 if scope == "USA":
28 return [table["name"] for table in table_details["tables"]]
29 elif scope == "SF":
30 return [table["name"] for table in sf_table_details["tables"]]
31 return []
32
33
34def get_table_schemas(table_names: List[str] = None, scope="USA") -> str:

Callers 2

text_to_sqlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected