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 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)
s.query(A).select_from(B).join(A)
s.query(A, B).select_from(B).join(A)
s.query(A.id)
s.query(A, B.id)
s.query(A.id, B)
s.query(A.id, B.id)
s.query(B.id, A.id)
etc
On 05/08/2017 06:21 AM, Chris Withers wrote:
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 http://stackoverflow.com/help/mcve for a full description.
---
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.