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_descriptions. Unfortunately, I think the EXISTS clause got already compiled to a Selectable and thus I cannot inspect it like I can the uncompiled query. Any hints on how to achieve that?
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.
Cheers, Nik
-- 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.