[DB-SIG] New take on PostgreSQL bindings for Python

Cristian Gafton gafton at rpath.com
Wed Sep 6 01:18:14 CEST 2006


On Tue, 5 Sep 2006, Cristian Gafton wrote:

>> cursor() an extra parameter: "name". If a cursor is named then a server
>> side cursor with that name is automatically generated (and destroyed at
>
> I did not go that rounte because of the potential confusion on named 
> parameters:

Oops, sorry - you wrote cursor() and I read execute() ;-)

Yeah, setting the cursor behavior at its creation time also works. 
However, asking to name it I think ties the spec a bit too close to the 
driver details - I can see an app writer wanting somethging like "I don't 
care, don't suck it all the result sets in the client memory". The 
itercursor() way has the advantage that can be easily aliased to the 
standard cursor() method for backends where it doesn't really make sense 
(sqlite, Oracle, etc).

Cristian
-- 
Cristian Gafton
rPath, Inc.



More information about the DB-SIG mailing list