def all_to_dicts(cur=None, rows=None, col_names=None):

    if col_names is None:
        assert cur is not None, 'You must specify cur or col_names.'
        col_names = extract_col_names(cur)

    if rows is None:
        assert cur is not None, 'You must specify cur or rows.'
        rows = cur

    return [dict(izip(col_names, row)) for row in rows]
The '_type' and '_meta' keys are reserved.
dataset/ETHPy150Open moskytw/mosql/mosql/db.py/all_to_dicts--crossover with--dataset/ETHPy150Open core-api/python-client/coreapi/codecs/corejson.py/_escape_key