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

Method get_from_clause_item_matches

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

Source from the content-addressed store, hash-verified

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
704 s = suggestion
705 t_sug = Table(s.schema, s.table_refs, s.local_tables)
706 v_sug = View(s.schema, s.table_refs)
707 f_sug = Function(s.schema, s.table_refs, usage="from")
708 return (
709 self.get_table_matches(t_sug, word_before_cursor, alias)
710 + self.get_view_matches(v_sug, word_before_cursor, alias)
711 + self.get_function_matches(f_sug, word_before_cursor, alias)
712 )
713
714 def _arg_list(self, func, usage):
715 """Returns a an arg list string, e.g. `(_foo:=23)` for a func.

Callers

nothing calls this directly

Calls 3

get_table_matchesMethod · 0.95
get_view_matchesMethod · 0.95
get_function_matchesMethod · 0.95

Tested by

no test coverage detected