MCPcopy Index your code
hub / github.com/dbcli/mycli / _strip_backticks

Method _strip_backticks

mycli/sqlcompleter.py:1830–1833  ·  view source on GitHub ↗
(name: str | None)

Source from the content-addressed store, hash-verified

1828
1829 @staticmethod
1830 def _strip_backticks(name: str | None) -> str:
1831 if name and name[0] == "`" and name[-1] == "`":
1832 return name[1:-1]
1833 return name or ""
1834
1835 @staticmethod
1836 def _matches_parent(parent: str, schema: str | None, relname: str, alias: str | None) -> bool:

Callers 3

populate_enum_valuesMethod · 0.95
_escape_identifierMethod · 0.95
test_strip_backticksFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_strip_backticksFunction · 0.64