def _fetch_all_as_dict(self, cursor):
        desc = cursor.description
        return [
            dict(zip([col[0] for col in desc], row))
            for row in cursor.fetchall()
        ]
Iterates over the result set and converts each row to a dictionary
dataset/ETHPy150Open ambitioninc/django-query-builder/querybuilder/query.py/Query._fetch_all_as_dict