From: | Federico Di Gregorio <federico(dot)digregorio(at)dndg(dot)it> |
---|---|
To: | psycopg(at)postgresql(dot)org |
Subject: | Re: Transaction control overhauling |
Date: | 2011-05-12 14:07:16 |
Message-ID: | 4DCBE994.8050703@dndg.it |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | psycopg |
On 12/05/11 12:36, Daniele Varrazzo wrote:
[snip]
>> Or,
>> maybe even better, we can have 4 attributes and the set_transaction() as
>> a shortcut:
>>
>> conn.autocommit
>> conn.transaction_isolation_level
>> conn.transaction_readonly
>> conn.transaction_deferrable
>> conn.set_transaction(isolation_level, autocommit, readonly, ...)
>
> Wow, I thought you wanted to limit the dbapi extensions :)
Well, I know. But, in fact, if we introduce the possibility to set such
parameters we also _need_ a way to retrieve them and attributes are the
only sensible way to retrive them (a function returning a tuple is
another way but stinks.)
federico
--
Federico Di Gregorio federico(dot)digregorio(at)dndg(dot)it
Studio Associato Di Nunzio e Di Gregorio http://dndg.it
[parlando di un amica] ora mi tampina perche' vuole i miei cacciaviti.
ma ti rendi conto? -- <dani>
From | Date | Subject | |
---|---|---|---|
Next Message | Daniele Varrazzo | 2011-05-12 14:25:53 | Re: Transaction control overhauling |
Previous Message | Daniele Varrazzo | 2011-05-12 12:52:47 | Re: Transaction control overhauling |