Maybe this could go into the FAQ? This post really helped me update some 
code using SA 0.3.

Gaetan de Menten wrote:
> On Dec 20, 2007 8:50 AM, iain duncan <[EMAIL PROTECTED]> wrote:
>   
>> Sorry if this seems a stupid question, but I thought that Mike had said
>> that in sa0.4, if you used session_context that this
>>
>> User.query.get_by(name='john')
>>
>> was the replacement for the old assign mapper convenience call.
>> But I'm getting deprecation warnings. What should I be doing instead of
>> the (almost as) convenient:
>>
>> User.query.get_by( **kwargs )
>>     
>
> User.query.filter_by(**kwargs).first()
>
>   
>> User.query.select_by( **kwargs )
>>     
>
> User.query.filter_by(**kwargs).all()
>
>   
>> User.query.select()
>>     
>
> User.query.filter(xxx).all()
>
>   



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to