MCPcopy Create free account
hub / github.com/dbcli/mssql-cli / get_view_matches

Method get_view_matches

mssqlcli/mssqlcompleter.py:798–801  ·  view source on GitHub ↗
(self, suggestion, word_before_cursor, alias=False)

Source from the content-addressed store, hash-verified

796 return self.find_matches(word_before_cursor, tables, meta='table')
797
798 def get_view_matches(self, suggestion, word_before_cursor, alias=False):
799 views = self.populate_schema_objects(suggestion.schema, 'views')
800 views = [self._make_cand(v, alias, suggestion) for v in views]
801 return self.find_matches(word_before_cursor, views, meta='view')
802
803 def get_alias_matches(self, suggestion, word_before_cursor):
804 aliases = suggestion.aliases

Callers 1

Calls 3

_make_candMethod · 0.95
find_matchesMethod · 0.95

Tested by

no test coverage detected