Re: [sqlalchemy] does anyone have a trick for printing parenthesis on complex queries?

2014-09-11 Thread Jonathan Vanasco
On Wednesday, September 10, 2014 7:52:48 PM UTC-4, Michael Bayer wrote: might be tricky, there’s self_group() and Grouping(), you can probably use the latter explicitly. Yeah, I saw those. It would be too hard to re-engineer. Considering this is your answer, I'm going to give up hope and

[sqlalchemy] does anyone have a trick for printing parenthesis on complex queries?

2014-09-10 Thread Jonathan Vanasco
SqlAlchemy's formatting is sometimes getting in the way while debugging complex queries Does anyone have a trick to explicitly print parenthesis in queries? That would make some of these queries easier to follow and/or regex for example: sqlalchemy generates stuff like this: x OR y AND z

Re: [sqlalchemy] does anyone have a trick for printing parenthesis on complex queries?

2014-09-10 Thread Michael Bayer
might be tricky, there's self_group() and Grouping(), you can probably use the latter explicitly. On Sep 10, 2014, at 6:46 PM, Jonathan Vanasco jonat...@findmeon.com wrote: SqlAlchemy's formatting is sometimes getting in the way while debugging complex queries Does anyone have a trick