Export a `rows.Table` to a list of dicts

def export_to_dicts(table, *args, **kwargs):
    """Export a `rows.Table` to a list of dicts"""
    field_names = table.field_names
    return [{key: getattr(row, key) for key in field_names} for row in table]