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

Function _process_name

rat-sql-gap/seq2struct/utils/api_utils.py:4–7  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

2
3
4def _process_name(name: str):
5 # camelCase to spaces
6 name = re.sub("([a-z])([A-Z])", "\g<1> \g<2>", name)
7 return name.replace("-", " ").replace("_", " ").lower()
8
9def _prompt_table(table_name, prompt_user=True):
10 table_name = _process_name(table_name)

Callers 2

_prompt_tableFunction · 0.85
_prompt_columnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected