[sqlalchemy] query_chooser and relationship queries

2011-06-24 Thread Arthur Kopatsy
Hi, I am trying to write a proper query_chooser method for our user based sharding. To do so, I need to be able to query the value of the query's criterions. I have the following model: class User(object): id = Column(Integer, primary_key=True) ... class Subscription(object): id =

Re: [sqlalchemy] query_chooser and relationship queries

2011-06-24 Thread Michael Bayer
On Jun 24, 2011, at 12:49 PM, Arthur Kopatsy wrote: Hi, I am trying to write a proper query_chooser method for our user based sharding. To do so, I need to be able to query the value of the query's criterions. I have the following model: class User(object): id = Column(Integer,