On Jan 16, 2010, at 1:09 PM, Chris Withers wrote: > Michael Bayer wrote: >> it is quite simple to implement yourself, use a ConnectionProxy. > > Ah, ok, didn't know about them :-) > Out of interest, is echo=True implemented as a ConnectionProxy?
its not. CP is a little heavyhanded for just the built-in SQL logging. > >> however ConnectionProxy doesn't currently have hooks for "commit" or >> "rollback". I would gladly add those. > > Yes please! > > I see ConnectionProxy only allows for capture of cursor_execute and execute. > In addition to commit and rollback, what other methods should it grow to > allow proxying of everything SA does to a DBAPI connection? I've added hooks to intercept all transactional events at a high level in r6641. There are many, and some such as BEGIN PREPARED result in further statement executions as well.
-- 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.