we have select.prefix_with() which can stick it right after the SELECT, if that 
works....otherwise 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 that too for the moment...   :/  


On Dec 12, 2011, at 3:56 AM, lestat wrote:

> 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 this message because you are subscribed to the Google Groups 
> "sqlalchemy" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/sqlalchemy/-/WR0Oa-oZAx0J.
> To post to this group, send email to sqlalchemy@googlegroups.com.
> To unsubscribe from this group, send email to 
> sqlalchemy+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/sqlalchemy?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to