On May 2, 2007, at 10:00 AM, Sanjay wrote:
>
>
>> So, probably the question is, What SQLAlchemy code will translate to
>> "SELECT * FROM get_tasklist()". Needing suggestions.
>
> Is it like this?:
>
> tasklist = engine.text('SELECT * FROM
> get_tasklist()').execute().fetchall()
>
> It returns a list. Any idea how to get a SelectResults, would help a
> lot.
>
SelectResults is only used with the ORM. youd have to map a class to
your selectable function (the selectable function being created as i
noted in my previous email). also SelectResults is deprecated as
Query includes all of its functionality now.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---