Thanks Michael,
I went back and reread the "Proposal" thread and I finally get what
scalar() does and how it is different form one().  but how would first()
differ from scalar() and how would all() differ from list()?   At first
blush they look like they would return the same type of query object
Jose

Michael Bayer wrote:
> On Jul 4, 2007, at 6:19 PM, Jose Galvez wrote:
>
>   
>> Dear Micheal,
>>
>> so far I really like all the new stuff, especially using the query
>> generator.  I've got a question, what is going to be the preferred
>> method to replace get (or get_by).  What I've been using is
>> query().filter_by(something='something').list()[0] but that feels
>> cumbersome.
>>     
>
> sa 0.3.8 supports query().filter_by(crit).scalar().    in 0.3.9, most  
> of the 0.4 query interface will be available, i.e. youll be able to  
> use one(), first(), and all().  we're going to *try* to get a decent  
> level of "forwards compatibility" into 0.3.9.
>
> get() itself is a special method which is remaining.
>
> as far as ETA, from a "new feature" perspective most of what i wanted  
> to be there is implemented in the branch.  we still want to nail down  
> some naming convention stuff (and that is important too, so that we  
> might get the naming convention stuff as an optional set of things in  
> 0.3.9 too).  theres also a moderate amount of bug fixes which may or  
> may not be done on day one.  also totally not done at all are the  
> updated docs, which I am really looking forward to because 0.4 is  
> going to be much more of a joy to document, due to it being more  
> consistent and having better answers to questions like "how do i load  
> polymorphically".
>
> so ETA, id like it to be very close to going out in the next 4-6  
> weeks, or perhaps sooner if things go well.
>
> >
>
>   

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