Re: Dictionary Cursor?

Gerhard Haering <[email protected]> Thu, 13 Jan 2005 00:47:20 +0100
Newsgroups gmane.comp.python.db.pypgsql.user
Message-ID <[email protected]>
On Wed, Jan 12, 2005 at 10:59:18AM -0600, Jon-Pierre Gentil 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 :-)

-- Gerhard
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFB5bcIdIO4ozGCH14RAiS2AJ9hVBRGxKXoA9cRwVmu4f2u9/xi/wCeOgLN
q9S3W1yB6TZjuWqkLDwuiJI=
=Ssek
-----END PGP SIGNATURE-----