object-query or plain query?
 - objects are .. whatever class it is; 
   print the i.__dict__ or str(i) or whatever
 - plain-sql-query ones are RowProxy, they
   have i.keys() i.items() i.values()

On Tuesday 10 February 2009 21:27:09 Lukasz Szybalski wrote:
> Hello,
> Could somebody tell me how can I print the object data in my result
> set without knowing the column names?
>
> myresult=session.query(...).all()
>
> for i in myresult:
>  print ????????????????
>
>
> I need to debug some data and its hard to print the object keys and
> values (column names and its values) .
>
> i.keys() ?
> i.items()?  some dictionary like functions would be nice.

--~--~---------~--~----~------------~-------~--~----~
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 
sqlalchemy+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to