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

Method get_view_matches

pgcli/pgcompleter.py:799–805  ·  view source on GitHub ↗
(self, suggestion, word_before_cursor, alias=False)

Source from the content-addressed store, hash-verified

797 return self.find_matches(word_before_cursor, formats, meta="table format")
798
799 def get_view_matches(self, suggestion, word_before_cursor, alias=False):
800 views = self.populate_schema_objects(suggestion.schema, "views")
801
802 if not suggestion.schema and (not word_before_cursor.startswith("pg_")):
803 views = [v for v in views if not v.name.startswith("pg_")]
804 views = [self._make_cand(v, alias, suggestion) for v in views]
805 return self.find_matches(word_before_cursor, views, meta="view")
806
807 def get_alias_matches(self, suggestion, word_before_cursor):
808 aliases = suggestion.aliases

Callers 1

Calls 3

_make_candMethod · 0.95
find_matchesMethod · 0.95

Tested by

no test coverage detected