hello.
back to that theme of query.filter_or() and the missing notion of 
logical parenthesises
http://groups.google.com/group/sqlalchemy/browse_thread/thread/f6798eb5ef2c0bfe
i used once the subject in some explaination but just now realized 
what it can mean.

can we define arithmetics over query objects? with set-like meanings.
e.g. 
query(A).whatever_filter | query(A).another_filter
  -> equivalent or'ring the two criterias
query(A).whatever_filter & query(A).another_filter
  -> equivalent and'ring the two criterias
~query(A).whatever_filter
  -> the opposite of the criteria, e.g. ~query(A) wothout filters 
should return empty result

this leaves the parenthesises to the user.
+ can mean same as |, - can be like set.subtract(), etc.

if the queries are over different klases, then addEntity and return 
tuples;

not sure about query options, what happens to them... i guess they 
disappear (or error) if different and stay if same

what do u think?
ciao
svilen

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