[python-sybase] dictionary-based fetch*() methods?

Kevin Jacobs jacobs at theopalgroup.com
Thu, 13 May 2004 13:25:14 -0400


Skip Montanaro wrote:

>I'm new to Sybase and the Object Craft Sybase module, but have used both
>MySQL and PostgreSQL from Python extensively.  Both the MySQLdb and psycopg
>packages allow users to get select results as lists of dictionaries instead
>of just as lists of tuples.  Predictably, since this behavior isn't
>specified in the Python DB API, the two wrappers implemented this feature in
>different ways.
>
>  
>
For a better method, please consider my db_row package at:

    http://opensource.theopalgroup.com/

It provides dictionary, object, and tuple style interfaces in a way that 
is both
fast and memory efficient.

-Kevin