Closed TomMalkin closed 5 years ago
2 useful items would be:
I think making almost like a wrapper function called record_dict, that calls recordset as normal, and then quickly changes it into a list of dicts would be pretty easy here, so that a query like:
select id, name from testtable
would return
[{"id": 0, "name": "Jim"}, {"id": 1, "name": "Leonard"}]
Taking slight more memory but extremely easy to iterate over
being worked on in PR #58
closed in #59
Such as returning records in a list of dicts format, rather than (data, headers)