def tables(self): """ Yields (schema_name, table_name) tuples""" query = mssqlqueries.get_tables() logger.info(u'Tables query: {0}'.format(query)) for tabular_result in self.execute_single_batch_query(query): for row in tabular_result[0]: yield (row[0], row[1])
def get_tables(self): """ Yields (schema_name, table_name) tuples""" query = mssqlqueries.get_tables() logger.info(u'Tables query: %s', query) for tabular_result in self.execute_query(query): for row in tabular_result[0]: yield (row[0], row[1])