Re: Dictionary Cursor?
Jon-Pierre Gentil <[email protected]> Wed, 12 Jan 2005 19:00:11 -0600
| Newsgroups | gmane.comp.python.db.pypgsql.user |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 Gerhard Haering wrote: >>I was curious as to whether or not anyone has attempted to implement >>a cursor that returns a dictionary keyed from column names, similar >>to the MySQLdb.DictCursor class? I am not familiar enough with libpg >>to implement it myself. > > > The default cursor works like both the DB-API cursor and MySQLdb's > DictCursor. Try it :-) Ha! Imagine that. I completely looked over that aspect of it. Thank you very much! - -- _________________________________________________________ Jon-Pierre Gentil PGP: 0xA21BC30E jabber: [email protected] web: www.sebistar.net "If you think education is expensive, try ignorance." _________________________________________________________ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iEYEAREDAAYFAkHlyBsACgkQOrVFmaIbww5XAgCgmaClLTvB8wcbpJx29Agv943o o/MAoL9WQb0lKYUsmuPmhR9YDXFzvRLm =0KBT -----END PGP SIGNATURE----- ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt