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

Method extend_datatypes

pgcli/pgcompleter.py:288–297  ·  view source on GitHub ↗
(self, type_data)

Source from the content-addressed store, hash-verified

286 parcolmeta.foreignkeys.append(fk)
287
288 def extend_datatypes(self, type_data):
289 # dbmetadata['datatypes'][schema_name][type_name] should store type
290 # metadata, such as composite type field names. Currently, we're not
291 # storing any metadata beyond typename, so just store None
292 meta = self.dbmetadata["datatypes"]
293
294 for t in type_data:
295 schema, type_name = self.escaped_names(t)
296 meta[schema][type_name] = None
297 self.all_completions.add(type_name)
298
299 def extend_query_history(self, text, is_init=False):
300 if is_init:

Callers 2

get_completerMethod · 0.95
refresh_typesFunction · 0.80

Calls 1

escaped_namesMethod · 0.95

Tested by

no test coverage detected