Re: Is there dictionary connection that also does logging?

Поиск
Список
Период
Сортировка
От Daniele Varrazzo
Тема Re: Is there dictionary connection that also does logging?
Дата
Msg-id BANLkTinD=e3sku5KMT2nxKTmWUyYU2=CuA@mail.gmail.com
обсуждение исходный текст
Ответ на Is there dictionary connection that also does logging?  ("W. Matthew Wilson" <matt@tplus1.com>)
Список psycopg
On Sat, Jun 11, 2011 at 8:42 PM, W. Matthew Wilson <matt@tplus1.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

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

Предыдущее
От: "W. Matthew Wilson"
Дата:
Сообщение: Is there dictionary connection that also does logging?
Следующее
От: Federico Di Gregorio
Дата:
Сообщение: RELEASE: psycopg 2.4.2