DBI Commentary
D'Arcy J.M. Cain
darcy at vex.net
Fri Jan 21 11:36:32 EST 2000
Andrew Csillag <drew.csillag at starmedia.net> wrote:
> There's also cursor.description which if you do a SELECT * FROM ... will
> tell you the names of the columns so you can reorder them yourself (or
> do as I do and often turn the result list into a list of dictionaries
> keyed by the downcased column name).
This is basically whay PyGreSQL's dictresult() method gives you against
the PostgreSQL database.
--
D'Arcy J.M. Cain <darcy at vex.net> | Democracy is three wolves
http://www.vex.net/ | and a sheep voting on
+1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.
More information about the Python-list
mailing list