very easy. throw in a ConnectionProxy, override cursor_execute(), strip newlines from the statements.
On Jun 2, 2010, at 2:02 PM, Chris H. wrote: > Is there anyway to have sqlalchemy send the queries to the database as > a single line instead of multiline? The reason for this is we > generate multiple GB of database logs each hour, and trying to find > the rest of a given sqlalchemy query is quite a pain right now. It > would be much easier for us if when we grep for a specific user or sql > fragment if the entire sql line were returned instead of just the > Select clause. > > Thanks for any help, > > Chris H. > > SQLAlchemy 0.5.8 > PostgreSQL 8.3.x > > -- > You received this message because you are subscribed to the Google Groups > "sqlalchemy" group. > To post to this group, send email to sqlalch...@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 sqlalch...@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.