MCPcopy Index your code
hub / github.com/dbcli/pgcli / get_schema_matches

Method get_schema_matches

pgcli/pgcompleter.py:689–700  ·  view source on GitHub ↗
(self, suggestion, word_before_cursor)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

escape_schemaMethod · 0.95
find_matchesMethod · 0.95

Tested by

no test coverage detected