I'm executing a raw query with SQLAlchemy. Is there a way to get the rows returned as dicts that contain column names (equivalent of DictCursor in MySQLdb) ? Code:
sql = 'select * from table'
rows = engine.execute(text(sql))
for row in rows:
print row