Mixing DictConnection and LoggingConnection

From: Alexey Luchko <luch(at)ank-sia(dot)com>
To: psycopg(at)postgresql(dot)org
Subject: Mixing DictConnection and LoggingConnection
Date: 2012-05-09 09:46:42
Message-ID: 4FAA3D02.9070202@ank-sia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

Hi!

I was thinking of a connection object fetching dicts and reporting slow
queries. However, the way the connections classes are implemented make me
think its impossible to create MyCursor(DictCursor, LoggingCursor) because
they refer directly to parent class for calling inherited methods, like
_cursor.method(....).

Am I wrong?

--
Alex

Responses

Browse psycopg by date

  From Date Subject
Next Message Daniele Varrazzo 2012-05-09 10:22:47 Re: Mixing DictConnection and LoggingConnection
Previous Message Federico Di Gregorio 2012-05-08 15:08:34 Re: psycopg2.extras DictCursor typos