[web2py] Re: begin a transaction manually ?
1) db.commit() closes a transactions and starts a new one. 2) yes but not concurrently, unless you have two db objects. 3) it is the same. On Jan 19, 5:02 pm, sebastian wrote: > hi all, > > 1) is it possible to begin a transaction manually within a controller ? > > 2) can I start more than one transaction ? > > 3) question 1 for DAL in a non web2py application ? > > thanks
[web2py] Re: begin a transaction manually ?
You cannot clone it. but can make two. On Jan 26, 3:10 am, "Sebastian E. Ovide" wrote: > > 2) yes but not concurrently, unless you have two db objects. > > Is it possible to "clone" a db object ? instead of declare 2 (or n) db > objects in the model, can I create a new one a controller based on db > declared in the model ? > > -- > Sebastian E. Ovide
Re: [web2py] Re: begin a transaction manually ?
> 2) yes but not concurrently, unless you have two db objects. > > Is it possible to "clone" a db object ? instead of declare 2 (or n) db objects in the model, can I create a new one a controller based on db declared in the model ? -- Sebastian E. Ovide
Re: [web2py] Re: begin a transaction manually ?
maybe if there's a way to .close() the db to be able to define it again. http://zerp.ly/rochacbruno Em 26/01/2012 12:18, "Massimo Di Pierro" escreveu: > You cannot clone it. but can make two. > > On Jan 26, 3:10 am, "Sebastian E. Ovide" > wrote: > > > 2) yes but not concurrently, unless you have two db objects. > > > > Is it possible to "clone" a db object ? instead of declare 2 (or n) db > > objects in the model, can I create a new one a controller based on db > > declared in the model ? > > > > -- > > Sebastian E. Ovide
Re: [web2py] Re: begin a transaction manually ?
I guess that defining two will work for me... thanks ! On Thu, Jan 26, 2012 at 2:40 PM, Bruno Rocha wrote: > maybe if there's a way to .close() the db to be able to define it again. > > http://zerp.ly/rochacbruno > Em 26/01/2012 12:18, "Massimo Di Pierro" > escreveu: > > You cannot clone it. but can make two. >> >> On Jan 26, 3:10 am, "Sebastian E. Ovide" >> wrote: >> > > 2) yes but not concurrently, unless you have two db objects. >> > >> > Is it possible to "clone" a db object ? instead of declare 2 (or n) db >> > objects in the model, can I create a new one a controller based on db >> > declared in the model ? >> > >> > -- >> > Sebastian E. Ovide > > -- Sebastian E. Ovide