Re: [Lift] Transactions with Mapper

2010-03-03 Thread Indrajit Raychaudhuri
On 03/03/10 9:58 PM, David Pollak wrote: On Tue, Mar 2, 2010 at 5:53 AM, Timothy Perrett mailto:timo...@getintheloop.eu>> wrote: Probally worth sticking this on the wiki Cheers, Tim Sent from my iPhone Wait... you've got a broken hand and you can still type on your iPhone?!?!

Re: [Lift] Transactions with Mapper

2010-03-03 Thread David Pollak
On Tue, Mar 2, 2010 at 5:53 AM, Timothy Perrett wrote: > Probally worth sticking this on the wiki > > Cheers, Tim > > Sent from my iPhone Wait... you've got a broken hand and you can still type on your iPhone?!?! :-) > > > On 2 Mar 2010, at 14:37, Jeppe Nejsum Madsen wrote: > > ced writes:

Re: [Lift] Transactions with Mapper

2010-03-03 Thread Timothy Perrett
Probally worth sticking this on the wiki Cheers, Tim Sent from my iPhone On 2 Mar 2010, at 14:37, Jeppe Nejsum Madsen wrote: ced writes: When I use Mapper outside a request, say in an actor, how do I wrap it in a transaction? I know that I do a S.addAround(DB.buildLoanWrapper) to have t

Re: [Lift] Transactions with Mapper

2010-03-02 Thread Jeppe Nejsum Madsen
ced writes: > When I use Mapper outside a request, say in an actor, how do I wrap it > in a transaction? I know that I do a S.addAround(DB.buildLoanWrapper) > to have transactions within a request. > Can anyone provide a simple code snippet? You can use use :-) DB.use(DefaultConnectionIdenfifie