(self, suggestion, word_before_cursor)
| 687 | return matches |
| 688 | |
| 689 | def get_schema_matches(self, suggestion, word_before_cursor): |
| 690 | schema_names = self.dbmetadata["tables"].keys() |
| 691 | |
| 692 | # Unless we're sure the user really wants them, hide schema names |
| 693 | # starting with pg_, which are mostly temporary schemas |
| 694 | if not word_before_cursor.startswith("pg_"): |
| 695 | schema_names = [s for s in schema_names if not s.startswith("pg_")] |
| 696 | |
| 697 | if suggestion.quoted: |
| 698 | schema_names = [self.escape_schema(s) for s in schema_names] |
| 699 | |
| 700 | return self.find_matches(word_before_cursor, schema_names, meta="schema") |
| 701 | |
| 702 | def get_from_clause_item_matches(self, suggestion, word_before_cursor): |
| 703 | alias = self.generate_aliases |
nothing calls this directly
no test coverage detected