On Sun, Mar 21, 2010 at 16:21, Mateusz Korniak <[email protected]> wrote: > On Saturday 20 of March 2010, yoav glazner wrote: >> On Fri, Mar 19, 2010 at 11:21 AM, matkor <mateusz- > [email protected]>wrote: >> > Is there any "handler" to get called when SQL query starts to be >> > executed and >> > another when SQL query is finished when acting over elixir Entities ? >> > >> > I am writing simple (single threaded) QT app using elixir for data >> > model and >> > my application hangs sometimes wating for sql data to come and I wish >> > to get >> > information what query causes that or set cursor aproprietly. > >> >> Didn't >> metadata.bind.echo = True >> help you? > > Nope :( > It does not provide handlers and seems to me, it only prints query start > moment.
I am not sure I understand what you want exactly, but "events decorator" might be what you are looking for: http://elixir.ematia.de/trac/browser/elixir/tags/0.7.1/tests/test_events.py Only works for the ORM though. If you want more global hooks, you'd have to look for session extensions: http://www.sqlalchemy.org/docs/reference/orm/interfaces.html#sqlalchemy.orm.interfaces.SessionExtension Hope it helps, -- Gaëtan de Menten -- You received this message because you are subscribed to the Google Groups "SQLElixir" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sqlelixir?hl=en.
