On Jun 4, 3:11 pm, "Mike Orr" <[EMAIL PROTECTED]> wrote:
>
> > .first() -- returns first row
> > .one() -- returns first row, raise exception if more than one result
>
> What if there are zero rows?  Return None or raise an exception?  I
> find the former useful enough, but I imagine some people prefer the
> latter.

one() raises an exception if not exactly one result.


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