in continuing
http://groups.google.com/group/sqlalchemy/browse_thread/thread/4dab6cfae1f62521/8b66851007c6a652?lnk=gst&q=daniel+miller&rnum=2#8b66851007c6a652
, which bizarrely GG will not let me continue, on a closely related but
not exactly the same issue, i broke my limit of people expecting this
particular behavior and just added it:

   # get an instance of Address
   someaddress = session.query(Address).get_by(street='123 Green
Street')

   # look for User instances which have the
   # "someaddress" instance in their "addresses" collection
   l = session.query(User).select_by(addresses=someaddress)

so, not quite the same as the previous discussion since we are back in
the "XXX_by" world of things, but this would be SA's first foray into
higher-level querying functionality.   as ive maintained, i dont think
the Query object can go too far with this since it ultimately would
need some totally reworked querying paradigm to come up with some kind
of OQL.


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