Re: Transaction control overhauling

Поиск
Список
Период
Сортировка
От Federico Di Gregorio
Тема Re: Transaction control overhauling
Дата
Msg-id 4DCBE994.8050703@dndg.it
обсуждение исходный текст
Ответ на Re: Transaction control overhauling  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
Ответы Re: Transaction control overhauling
Re: Transaction control overhauling
Список 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.digregorio@dndg.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>

В списке psycopg по дате отправления:

Предыдущее
От: Daniele Varrazzo
Дата:
Сообщение: Re: Transaction control overhauling
Следующее
От: Daniele Varrazzo
Дата:
Сообщение: Re: Transaction control overhauling