MCPcopy Create free account
hub / github.com/dbcli/mssql-cli / get_databases

Method get_databases

mssqlcli/mssqlcliclient.py:310–315  ·  view source on GitHub ↗

Returns a list of database names

(self)

Source from the content-addressed store, hash-verified

308 return [x[0] for x in tabular_result[0]]
309
310 def get_databases(self):
311 """ Returns a list of database names"""
312 query = mssqlqueries.get_databases()
313 logger.info(u'Databases query: %s', query)
314 for tabular_result in self.execute_query(query):
315 return [x[0] for x in tabular_result[0]]
316
317 def get_tables(self):
318 """ Yields (schema_name, table_name) tuples"""

Callers 1

refresh_databasesFunction · 0.80

Calls 1

execute_queryMethod · 0.95

Tested by

no test coverage detected