| 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('`'): |