Re: [sqlalchemy] relationship query_class in SQLAlchemy 1.4.0b3

2021-03-01 Thread 'Jonathan Vanasco' via sqlalchemy
ce and kind of arbirary, since some Query >> methods decide to execute at one point or another. >> >> Flask-SQLAlchemy therefore has to decide where it wants to go with this >> direction, and there are options, including sticking with the legacy query >> /

Re: [sqlalchemy] relationship query_class in SQLAlchemy 1.4.0b3

2021-03-01 Thread Mike Bayer
del for future releases. From SQLAlchemy's >> point of view, the Query was always not well thought out and was >> inconsistent with how Core worked, and I've wanted for years to resolve that >> problem. >> >> - mike >> >> >> >>

Re: [sqlalchemy] relationship query_class in SQLAlchemy 1.4.0b3

2021-03-01 Thread Ahmed
my's point of view, the Query was always not well thought out and > was inconsistent with how Core worked, and I've wanted for years to resolve > that problem. > > - mike > > > > > On Thursday, February 25, 2021 at 2:21:43 PM UTC-8 Mike Bayer wrote: > > > this will

Re: [sqlalchemy] relationship query_class in SQLAlchemy 1.4.0b3

2021-02-26 Thread Mike Bayer
I've reverted entirely some changes to AppenderQuery that made it work >> more in 2.0 style. As Query is going to be present in 2.0, "dynamic" >> relationships will remain also as legacy. They are superseded by explicit >> use of the with_parent() filtering

Re: [sqlalchemy] relationship query_class in SQLAlchemy 1.4.0b3

2021-02-26 Thread Ahmed
ering construct. > > > > On Thu, Feb 25, 2021, at 3:25 PM, Ahmed wrote: > > Hello, > > It seems that SQLAlchemy 1.4.0b3 ignores relationship() query_class > parameter. Here's the snippet that works with 1.3 but doesn't with 1.4: > > class Parent(db.Model): >

Re: [sqlalchemy] relationship query_class in SQLAlchemy 1.4.0b3

2021-02-25 Thread Mike Bayer
superseded by explicit use of the with_parent() filtering construct. On Thu, Feb 25, 2021, at 3:25 PM, Ahmed wrote: > Hello, > > It seems that SQLAlchemy 1.4.0b3 ignores relationship() query_class > parameter. Here's the snippet that works with 1.3 but doesn't with 1.4: >

Re: [sqlalchemy] relationship query_class in SQLAlchemy 1.4.0b3

2021-02-25 Thread Mike Bayer
this is a bug. however, the Query object is legacy. what is your actual use case? there are better ways to achieve them now. On Thu, Feb 25, 2021, at 3:25 PM, Ahmed wrote: > Hello, > > It seems that SQLAlchemy 1.4.0b3 ignores relationship() query_class > parameter. Here's

[sqlalchemy] relationship query_class in SQLAlchemy 1.4.0b3

2021-02-25 Thread Ahmed
Hello, It seems that SQLAlchemy 1.4.0b3 ignores relationship() query_class parameter. Here's the snippet that works with 1.3 but doesn't with 1.4: class Parent(db.Model): __tablename__ = "todo" id = db.Column(db.Integer, primary_key=True) # ... Column mappings