Re: [sqlalchemy] how add comment before query statement?

2011-12-16 Thread bogun . dmitriy
2011/12/12 Michael Bayer mike...@zzzcomputing.com we have select.prefix_with() which can stick it right after the SELECT, if that worksotherwise if it really has to be the first thing would need to work in some @compiles tricks. then as far as Query I thought we had added something

Re: [sqlalchemy] how add comment before query statement?

2011-12-16 Thread Michael Bayer
On Dec 16, 2011, at 4:32 PM, bogun.dmit...@gmail.com wrote: 2011/12/12 Michael Bayer mike...@zzzcomputing.com we have select.prefix_with() which can stick it right after the SELECT, if that worksotherwise if it really has to be the first thing would need to work in some @compiles

[sqlalchemy] how add comment before query statement?

2011-12-12 Thread lestat
For our postgresql cluster we need sometime append comment before query statement. E.g. q = Comment.query.all() SELECT ... FROM comment How append comment like this? /*NO LOAD BALANCE*/ SELECT ... FROM comment I try change q.statement, but can't find right solution. Thanks! -- You received

Re: [sqlalchemy] how add comment before query statement?

2011-12-12 Thread Michael Bayer
we have select.prefix_with() which can stick it right after the SELECT, if that worksotherwise if it really has to be the first thing would need to work in some @compiles tricks. then as far as Query I thought we had added something for this but apparently not, you'd have to subclass