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
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)
Awesome, thank you for the response, this is what I was looking for.
--
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
there's a long term issue to provide some compatibility here at
https://bitbucket.org/zzzeek/sqlalchemy/issues/2700/support-__table_args__-on-single-inh.
For things like Index you can create those out of the table like this:
class Whatever(...):
..
Index('my_index', Whatever.some_column)