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

Function refresh_schemata

mycli/completion_refresher.py:121–125  ·  view source on GitHub ↗
(completer: SQLCompleter, executor: SQLExecute)

Source from the content-addressed store, hash-verified

119
120@refresher("schemata")
121def refresh_schemata(completer: SQLCompleter, executor: SQLExecute) -> None:
122 # schemata - In MySQL Schema is the same as database. But for mycli
123 # schemata will be the name of the current database.
124 completer.extend_schemata(executor.dbname)
125 completer.set_dbname(executor.dbname)
126
127
128@refresher("tables")

Callers

nothing calls this directly

Calls 2

extend_schemataMethod · 0.80
set_dbnameMethod · 0.80

Tested by

no test coverage detected