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

Method maybe_quote_identifier

mycli/sqlcompleter.py:1243–1248  ·  view source on GitHub ↗
(self, item: str)

Source from the content-addressed store, hash-verified

1241 self.all_completions = set(self.keywords + self.functions)
1242
1243 def maybe_quote_identifier(self, item: str) -> str:
1244 if item.startswith('`'):
1245 return item
1246 if item == '*':
1247 return item
1248 return '`' + item + '`'
1249
1250 def quote_collection_if_needed(
1251 self,

Callers 2

Calls

no outgoing calls

Tested by 1