[DB-SIG] DB API 2.0 - dictionary fetch ?

D'Arcy J.M. Cain darcy@druid.net
Sat, 24 Jun 2000 09:22:28 -0400 (EDT)


Thus spake jonan-lists-python-db@callisia.com
>     I am wondering if the 2.0 db api provides a method for returning
>     a dictionary of results instead of a list ? Something like
>     perl-DBI's fetch_hashref . 

No but PyGreSQL 3.0 (http://www.druid.net/pygresql/) has two modules, DB
API and Classic.  The classic module uses a completely different interface
to the database (PostgreSQL only) which includes returning dictionaries
and lists of dictionaries.  Very convenient for certain tasks.

-- 
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.