|
|
| Author |
Message |
< Erlyweb mailing list ~ transaction with queries from different modules |
| Guest |
Posted: Mon Oct 27, 2008 12:04 pm |
|
|
|
Guest
|
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 erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Wed Oct 29, 2008 7:09 am |
|
|
|
Guest
|
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 <ruud.prein@gmail.com> 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 erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---
Post received from mailinglist |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|