Skip site navigation (1) Skip section navigation (2)

Re: Is there dictionary connection that also does logging?

From: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
To: "W(dot) Matthew Wilson" <matt(at)tplus1(dot)com>
Cc: psycopg(at)postgresql(dot)org
Subject: Re: Is there dictionary connection that also does logging?
Date: 2011-06-11 22:32:52
Message-ID: BANLkTinD=e3sku5KMT2nxKTmWUyYU2=CuA@mail.gmail.com (view raw or flat)
Thread:
Lists: psycopg
On Sat, Jun 11, 2011 at 8:42 PM, W. Matthew Wilson <matt(at)tplus1(dot)com> wrote:
> There's a psycopg2.extras.LoggingConnection and a
> psycopg2.extras.DictConnection.
>
> Is there a connection that does both?

Not out of the box but...

> If not, could I write one?  Is there anything that prevents these from
> working together?

Yes, it would be very easy. Just take a look at the extras.py module:
you'll get pretty soon an idea about how to do it.

> PS: psycopg2 is fantastic software.

Thank you!

-- Daniele

In response to

psycopg by date

Next:From: Federico Di GregorioDate: 2011-06-13 16:53:03
Subject: RELEASE: psycopg 2.4.2
Previous:From: W. Matthew WilsonDate: 2011-06-11 19:42:46
Subject: Is there dictionary connection that also does logging?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group