def METHOD_NAME(self, cursor):
    ret = []
    if cursor.description is not None:
        cols = [d[0] for d in cursor.description]
        while True:
            entry = cursor.fetchone()
            if entry is None:
                break
            ret.append(dict(zip(cols, entry)))
    return ret