Re: [sqlalchemy] Get nested query from Exists clause

2016-08-25 Thread Dominik George
Hi, Am Montag, 15. August 2016 15:32:35 UTC+2 schrieb Mike Bayer: > > > nothing is string-compiled at that point, everything is just nested > inside. the Exists() should have something like "element" inside of it > (look in its __dict__) that is the underlying Selectable. > > > .element is a F

Re: [sqlalchemy] Get nested query from Exists clause

2016-08-15 Thread Mike Bayer
On 08/14/2016 04:18 PM, Dominik George wrote: Hi, I have an instance of sqlalchemy.sql.selectable.Exists which I got as the whereclause of a query generated by Query.any(). I would like to inspect the nested SELECT statement in such a way that I can get hold of its whereclause and column_desc

[sqlalchemy] Get nested query from Exists clause

2016-08-14 Thread Dominik George
Hi, I have an instance of sqlalchemy.sql.selectable.Exists which I got as the whereclause of a query generated by Query.any(). I would like to inspect the nested SELECT statement in such a way that I can get hold of its whereclause and column_descriptions. Unfortunately, I think the EXISTS cla