[PEAK] Progress on peak.schema
Phillip J. Eby
pje at telecommunity.com
Wed Mar 2 10:57:35 EST 2005
At 02:22 PM 3/2/05 +0200, Niki Spahiev wrote:
>Phillip J. Eby wrote:
>
>>At 11:03 AM 3/1/05 +0200, Niki Spahiev wrote:
>>
>>>Phillip J. Eby wrote:
>>>[..]
>>>
>>>>Anyway, here's a couple of ways to express the same simple query using
>>>>the "bulletins" example schema::
>>>> aUser = ws.groupBy(User.loginId)['joe']
>>>> aUser = ws[User.loginId.eq('joe')]
>>>
>>>
>>>Has ws.groupBy any connection to SQL group by? If not it's confusing.
>>
>>Some. Actually, I just realized that the above is wrong, it should be:
>> aUser, = ws.groupBy(User.loginId)['joe']
>
>OK. It's clear for me now. If loginId is not unique we will get longer set
>right?
Yes, exactly.
More information about the PEAK
mailing list