Good day community,

there was similar theme - which ended without answer.

How can I convert mine query results to list of dicts. I.e. I want the
following

select = session.select(MineTableObject)
res = select.fetchall()

res_list_dict = [dict(r) for r in res]



but that doesn't works.
dict(r) method returns the array of column_number->column_value not
the dictionary column_name->column_value.

Is there a possibility to have this ??

best regards, Ilya Dyoshin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to