Re: Map connection().status() to name? - Mailing list psycopg

From Jim Nasby
Subject Re: Map connection().status() to name?
Date
Msg-id a812a451-94a5-d697-6074-6d8119684193@BlueTreble.com
Whole thread Raw
In response to Re: Map connection().status() to name?  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
List psycopg
On 11/18/16 5:34 PM, Daniele Varrazzo wrote:
> I don't see why not. What constant do you want to reverse? The groups
> in `extensions` are status, isolation level, transaction status. Would
> you provide 3 different functions to reverse them?

That's what I was thinking.

Would there be any value in being able to map back to the constants
themselves? I can't really think of any use for that, but I'm not really
a python guy so...
--
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 by date:

Previous
From: Daniele Varrazzo
Date:
Subject: Re: Map connection().status() to name?
Next
From: Yang Gao
Date:
Subject: Does psycopg2 support Kerberos for Postgres?