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

Method extend_schemata

pgcli/pgcompleter.py:169–181  ·  view source on GitHub ↗
(self, schemata)

Source from the content-addressed store, hash-verified

167 self.all_completions.update(additional_keywords)
168
169 def extend_schemata(self, schemata):
170 # schemata is a list of schema names
171 schemata = self.escaped_names(schemata)
172 metadata = self.dbmetadata["tables"]
173 for schema in schemata:
174 metadata[schema] = {}
175
176 # dbmetadata.values() are the 'tables' and 'functions' dicts
177 for metadata in self.dbmetadata.values():
178 for schema in schemata:
179 metadata[schema] = {}
180
181 self.all_completions.update(schemata)
182
183 def extend_casing(self, words):
184 """extend casing data

Callers 2

get_completerMethod · 0.95
refresh_schemataFunction · 0.80

Calls 2

escaped_namesMethod · 0.95
updateMethod · 0.80

Tested by

no test coverage detected