MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _list_dbs

Function _list_dbs

lib/sqlalchemy/testing/plugin/plugin_base.py:323–331  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

321
322
323def _list_dbs(*args):
324 if file_config is None:
325 # assume the current working directory is the one containing the
326 # setup file
327 read_config(Path.cwd())
328 print("Available --db options (use --dburi to override)")
329 for macro in sorted(file_config.options("db")):
330 print("%20s\t%s" % (macro, file_config.get("db", macro)))
331 sys.exit(0)
332
333
334def _requirements_opt(opt_str, value, parser):

Callers

nothing calls this directly

Calls 3

read_configFunction · 0.85
optionsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected