MCPcopy Create free account
hub / github.com/awslabs/gap-text2sql / _prompt_column

Function _prompt_column

rat-sql-gap/seq2struct/utils/api_utils.py:18–24  ·  view source on GitHub ↗
(column_name, table_name, prompt_user=True)

Source from the content-addressed store, hash-verified

16
17
18def _prompt_column(column_name, table_name, prompt_user=True):
19 column_name = _process_name(column_name)
20 print(f"Table {table_name}. Current col name: {column_name}")
21 new_name = (
22 input("Type new name (empty to keep previous name): ") if prompt_user else ""
23 )
24 return new_name if new_name != "" else column_name
25
26def refine_schema_names(schema):
27 new_schema = {

Callers 1

refine_schema_namesFunction · 0.85

Calls 1

_process_nameFunction · 0.85

Tested by

no test coverage detected