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

Method make_cand

pgcli/pgcompleter.py:504–506  ·  view source on GitHub ↗
(name, ref)

Source from the content-addressed store, hash-verified

502 scoped_cols = self.populate_scoped_cols(tables, suggestion.local_tables)
503
504 def make_cand(name, ref):
505 synonyms = (name, generate_alias(self.case(name), alias_map=self.alias_map))
506 return Candidate(qualify(name, ref), 0, "column", synonyms)
507
508 def flat_cols():
509 return [make_cand(c.name, t.ref) for t, cols in scoped_cols.items() for c in cols]

Callers

nothing calls this directly

Calls 3

caseMethod · 0.95
generate_aliasFunction · 0.85
CandidateFunction · 0.85

Tested by

no test coverage detected