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

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 (view raw or flat)
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

psycopg by date

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

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