예제 #1
0
 def schemas(self):
     """ Returns a list of schema names"""
     query = mssqlqueries.get_schemas()
     logger.info(u'Schemas query: {0}'.format(query))
     return [x[0] for x in self.execute_single_batch_query(query)[0]]
예제 #2
0
 def get_schemas(self):
     """ Returns a list of schema names"""
     query = mssqlqueries.get_schemas()
     logger.info(u'Schemas query: %s', query)
     for tabular_result in self.execute_query(query):
         return [x[0] for x in tabular_result[0]]