On Jul 15, 2007, at 11:19 PM, SamDonaldson wrote:
> > Say I used the threadlocal strategy here. What would the effect of > the following nested calls since I use a decorator? Would it detect > and use the same connection and the same top level transaction? > > engine.begin() > <do something> > engine.commit() > <else> > engine.rollback() > yes as long as everyone uses engine.execute(), statement.execute(), or engine.contextual_connect(), they make use of the same connection within the same thread. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---