MCPcopy Create free account
hub / github.com/dbcli/mycli / extend_collations

Method extend_collations

mycli/sqlcompleter.py:1148–1155  ·  view source on GitHub ↗
(self, collation_data: Generator[tuple])

Source from the content-addressed store, hash-verified

1146 self.all_completions.update(elt[0])
1147
1148 def extend_collations(self, collation_data: Generator[tuple]) -> None:
1149 for elt in collation_data:
1150 if not elt:
1151 continue
1152 if not elt[0]:
1153 continue
1154 self.collations.append(elt[0])
1155 self.all_completions.update(elt[0])
1156
1157 def set_dbname(self, dbname: str | None) -> None:
1158 self.dbname = dbname or ''

Calls

no outgoing calls