[DB-SIG] paramstyle without knowing the database

2012-12-03 Thread wilk
Hi, I did a litle function to use the same paramstyle regardless of the paramstyle of the database. I transform one paramstyle to an other (a code missing in the lib standard isn't it ?) But of course i need to know the paramstyle of the database. I didn't found any way to retrieve it from the

Re: [DB-SIG] paramstyle without knowing the database

2012-12-03 Thread M.-A. Lemburg
On 03.12.2012 09:31, wilk wrote: > Hi, > > I did a litle function to use the same paramstyle regardless of the > paramstyle of the database. I transform one paramstyle to an other (a > code missing in the lib standard isn't it ?) There are a few such libraries out there which take care of such

Re: [DB-SIG] Use of context managers with DB API 2

2012-12-03 Thread M.-A. Lemburg
On 03.12.2012 02:42, Daniele Varrazzo wrote: > On Mon, Nov 5, 2012 at 9:28 AM, M.-A. Lemburg wrote: >> On 04.11.2012 23:24, Christoph Zwerschke wrote: >>> To wrap everything up, as a result of our discussion, I will do the >>> following in the next version of >>> PyGreSQL: >>> >>> * make connecti

Re: [DB-SIG] Use of context managers with DB API 2

2012-12-03 Thread Daniele Varrazzo
On Mon, Dec 3, 2012 at 9:01 AM, M.-A. Lemburg wrote: > On 03.12.2012 02:42, Daniele Varrazzo wrote: >> On Mon, Nov 5, 2012 at 9:28 AM, M.-A. Lemburg wrote: >>> On 04.11.2012 23:24, Christoph Zwerschke wrote: To wrap everything up, as a result of our discussion, I will do the following

Re: [DB-SIG] Use of context managers with DB API 2

2012-12-03 Thread M.-A. Lemburg
On 03.12.2012 11:29, Daniele Varrazzo wrote: > On Mon, Dec 3, 2012 at 9:01 AM, M.-A. Lemburg wrote: >> On 03.12.2012 02:42, Daniele Varrazzo wrote: >>> On Mon, Nov 5, 2012 at 9:28 AM, M.-A. Lemburg wrote: On 04.11.2012 23:24, Christoph Zwerschke wrote: > To wrap everything up, as a resul