Re: Transaction control overhauling

Поиск
Список
Период
Сортировка
От Oswaldo
Тема Re: Transaction control overhauling
Дата
Msg-id 4DCC06E0.10607@soft-com.es
обсуждение исходный текст
Ответ на Re: Transaction control overhauling  (Federico Di Gregorio <federico.digregorio@dndg.it>)
Список psycopg
El 12/05/2011 17:47, Federico Di Gregorio escribió:
> On 12/05/11 17:15, Oswaldo wrote:
> [snip]
>> Another way is setting transacion mode with predefined constants and
>> combining it with '|':
>>
>> previous_mode = conn.set_transaction(psycppg2.TM_SERIALIZABLE |
>> psycppg2.TM_READONLY)
>
> Please don't do that C-ish thing.. Every time you do that a kitten
> somewhere dies.
>

Yes, not too pythonic but often practical to set object styles.

Sorry for the kittens ;)


--
Oswaldo Hernández

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

Предыдущее
От: Federico Di Gregorio
Дата:
Сообщение: Re: Transaction control overhauling
Следующее
От: Israel Ben Guilherme Fonseca
Дата:
Сообщение: Re: Input and Output data traffic