code: def get_result(self, cursor):
          '''Get the current result's data from the cursor.'''
          title = headers = None
  
          # cursor.description is not None for queries that return result sets,
          # e.g. SELECT or SHOW.
          if cursor.description is not None:
              headers = [x[0] for x in cursor.description]
              rows = cursor.fetchall()
              status = '%d row%s in set' % (len(rows), '' if len(rows) == 1 else 's')
          else:
              logger.debug('No rows in result.')
              rows = None
              status = 'Query OK'
          return (title, rows, headers, statusf get_result(self, cursor):
          '''Get the current result's data from the cursor.'''
          title = headers = None
  
          # cursor.description is not None for queries that return result sets,
          # e.g. SELECT or SHOW.
          if cursor.description is not None:
              headers = [x[0] for x in cursor.description]
              rows = cursor.fetchall()
              status = '%d row%s in set' % (len(rows), '' if len(rows) == 1 else 's')
          else:
              logger.debug('No rows in result.')
              rows = None
              status = 'Query OK'
          return (title, rows, headers, status)
docs: Get the current result's data from the cursor.