[DB-SIG] Already begun work on something similar...

Gerhard Häring haering_postgresql@gmx.de
Wed, 10 Jul 2002 01:41:34 +0200


* Jon Franz <coventry@one.net> [2002-07-09 18:00 -0400]:
> The _main_ thing I see missing from the DB API, that makes the wrapper
> I'm working on quite a pain, is a fetch-column-by-name capability,
> [...] I may be looking past something in the documentation that aloows
> this - so enlighten me.

cursor.description

> I've noticed that the old, non DBAPI compliant modules for postgreSQL
> have this functionality,

pyPgSQL has it today. So do PySQLite and MySQLdb. And psycopg and others
maybe, too.

Gerhard
-- 
mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    http://www.cs.fhm.edu/~ifw00065/    OpenPGP public key id AD24C930
public key fingerprint: 3FCC 8700 3012 0A9E B0C9  3667 814B 9CAA AD24 C930
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))