Is there any easy way like ActiveRecord's transaction ? I'd prefer
ModelA.transaction { ModelB.transaction {
ModelA.create fill someField save_!;
ModelB delete_! someId
...
}}
If no block-like methods, something like the following is OK
DB.beginTransaction
...
DB.endTransaction
I don't know whether this guy works ...
try { DB runQuery "begin" } catch { case _ => () }
...
try { DB runQuery "end" } catch { case _ => () }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" 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/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---