def databases(self):
     """ Returns a list of database names"""
     query = mssqlqueries.get_databases()
     logger.info(u'Databases query: {0}'.format(query))
     return [x[0] for x in self.execute_single_batch_query(query)[0]]
Exemple #2
0
 def get_databases(self):
     """ Returns a list of database names"""
     query = mssqlqueries.get_databases()
     logger.info(u'Databases query: %s', query)
     for tabular_result in self.execute_query(query):
         return [x[0] for x in tabular_result[0]]