[sqlalchemy] mapper.order_by deprecated?

2017-05-08 Thread Chris Withers
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

Re: [sqlalchemy] mapper.order_by deprecated?

2017-05-08 Thread mike bayer
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)

Re: [sqlalchemy] Can't define __table_args__ on a child-class in a single-table inheritance setup

2017-05-08 Thread Andrew Pashkin
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

Re: [sqlalchemy] Can't define __table_args__ on a child-class in a single-table inheritance setup

2017-05-08 Thread mike bayer
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)