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

Method extend_schemas

mssqlcli/mssqlcompleter.py:159–172  ·  view source on GitHub ↗
(self, schemas)

Source from the content-addressed store, hash-verified

157 self.all_completions.update(additional_keywords)
158
159 def extend_schemas(self, schemas):
160
161 # schemas is a list of schema names
162 schemas = self.escaped_names(schemas)
163 metadata = self.dbmetadata['tables']
164 for schema in schemas:
165 metadata[schema] = {}
166
167 # dbmetadata.values() are the 'tables' and 'functions' dicts
168 for metadata in self.dbmetadata.values():
169 for schema in schemas:
170 metadata[schema] = {}
171
172 self.all_completions.update(schemas)
173
174 def extend_casing(self, words):
175 """ extend casing data

Callers 2

get_completerMethod · 0.95
refresh_schemasFunction · 0.80

Calls 2

escaped_namesMethod · 0.95
updateMethod · 0.80

Tested by

no test coverage detected