Sure, Just do
person:transaction( fun() -> person:save(...) friend:save(...) end). The module that you call transaction() on just indicates which database connection pool to use, nothing else. Yariv On Mon, Oct 27, 2008 at 5:04 AM, Ruud <[EMAIL PROTECTED]> wrote: > > Hi, > > Is it possible to do transactions with erlydb with queries from > different modules, like doing a > person:save(...) > friend:save(...) > in one transaction, for example? > > kind regards > > Ruud > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "erlyweb" 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/erlyweb?hl=en -~----------~----~----~----~------~----~------~--~---
