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

Method extend_query_history

pgcli/pgcompleter.py:299–305  ·  view source on GitHub ↗
(self, text, is_init=False)

Source from the content-addressed store, hash-verified

297 self.all_completions.add(type_name)
298
299 def extend_query_history(self, text, is_init=False):
300 if is_init:
301 # During completer initialization, only load keyword preferences,
302 # not names
303 self.prioritizer.update_keywords(text)
304 else:
305 self.prioritizer.update(text)
306
307 def set_search_path(self, search_path):
308 self.search_path = self.escaped_names(search_path)

Callers 4

_bg_refreshMethod · 0.95
run_cliMethod · 0.80
test_learn_keywordsFunction · 0.80
test_learn_table_namesFunction · 0.80

Calls 2

update_keywordsMethod · 0.80
updateMethod · 0.80

Tested by 2

test_learn_keywordsFunction · 0.64
test_learn_table_namesFunction · 0.64