well, a "default", I disagree the problem is that simple. Because we
have a "default", Mapper.order_by, but all those cases I mentioned, no idea.
If we wanted to say that hey, "default" only means, "I'm querying for a
single entity in full, alone, otherwise no order_by", I guess that's
Gotcha. Is there any way to specify a default ordering for queries
against a model?
(similar to that offered by the Django ORM?)
cheers,
Chris
On 08/05/2017 23:51, mike bayer wrote:
because, it only works for a really simplistic case, and for all the
other cases, I have no idea what it
because, it only works for a really simplistic case, and for all the
other cases, I have no idea what it currently does, nor what it should do.
Assume A and B have order_by.I have no idea what the output is, or
should be, for:
s.query(A, B)
s.query(B, A)
s.query(A).join(B)
Hi All,
I see mapper.order_by is deprecated in the latest release. Why is that?
cheers,
Chris
--
SQLAlchemy -
The Python SQL Toolkit and Object Relational Mapper
http://www.sqlalchemy.org/
To post example code, please provide an MCVE: Minimal, Complete, and Verifiable
Example. See