Re: Map connection().status() to name?

Поиск
Список
Период
Сортировка
От Jim Nasby
Тема Re: Map connection().status() to name?
Дата
Msg-id a7fecbac-804e-047b-93c3-5deb5938c7ce@BlueTreble.com
обсуждение исходный текст
Ответ на Map connection().status() to name?  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Ответы Re: Map connection().status() to name?  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
Список psycopg
On 11/11/16 2:14 PM, Jim Nasby wrote:
> I realize that there are constants in psycopg2.extensions for available
> connection statuses and what-not, but is there any included way to map a
> returned status to a descriptive string? When I'm trying to debug
> something a status of '2' doesn't really tell me anything useful. :(

Would a patch implementing such a map be accepted?
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
855-TREBLE2 (855-873-2532)


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

Предыдущее
От: Jim Nasby
Дата:
Сообщение: Map connection().status() to name?
Следующее
От: Daniele Varrazzo
Дата:
Сообщение: Re: Map connection().status() to name?