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

Method reset_completions

mycli/sqlcompleter.py:1226–1241  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1224 self.all_completions.add(func_name)
1225
1226 def reset_completions(self) -> None:
1227 self.databases: list[str] = []
1228 self.users: list[str] = []
1229 self.character_sets: list[str] = []
1230 self.collations: list[str] = []
1231 self.show_items: list[Completion] = []
1232 self.dbname = ""
1233 self.dbmetadata: dict[str, Any] = {
1234 "tables": {},
1235 "views": {},
1236 "functions": {},
1237 "procedures": {},
1238 "enum_values": {},
1239 "foreign_keys": {},
1240 }
1241 self.all_completions = set(self.keywords + self.functions)
1242
1243 def maybe_quote_identifier(self, item: str) -> str:
1244 if item.startswith('`'):

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected