On 4/21/07, zopyx01 <[EMAIL PROTECTED]> wrote: > > I've written a wrapper z3c.sqlalchemy that hooks sqlalchemy into the > transaction management of Zope. > What level of control over sessions/transactions is available from > within Elixir?
Elixir uses the assign_mapper extension, which in turns use a Session Context and SessionContextExt mapper extension. So basically, any instance of your elixir class is automatically added to the current thread's session. See: http://www.sqlalchemy.org/docs/plugins.html#plugins_sessioncontext So, basically, for the moment, you don't have much control over that, except you can provide your own create_session method by modifying the provided "objectstore" object. If you need anything to get your thing working, please discuss it here, we'll try to come up with something. Transactions are handled the same way as in SQLAlchemy. See: http://www.sqlalchemy.org/docs/tutorial.html#tutorial_orm_transactions The only difference here is that you don't create the session yourself, so you'd have to call the create_transaction method on the objectstore object. HTH, -- Gaƫtan de Menten http://openhex.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
