[prev in list] [next in list] [prev in thread] [next in thread]
List: python-db-sig
Subject: [DB-SIG] DB API 2.0 - dictionary fetch ?
From: darcy () druid ! net (D'Arcy J ! M ! Cain)
Date: 2000-06-24 13:22:28
Message-ID: m135ptF-000AXdC () druid ! net
[Download RAW message or body]
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.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic