[cx-oracle-users] Re: Row values as dictionary
Brought to you by:
atuining
From: Jani T. <re...@lu...> - 2005-05-23 05:26:43
|
Jani Tiainen kirjoitti: > Hi again, > > Is there possibility to return row values in dictionary instead simple > tuple? Well let's clarify this a bit. I've seen two ways to implement this. First is custom class that can respond to both, column names or indices (pypgsql and pysqlite does this). Second is hook to enable usage of custom classes in generation of rows, this is done at least in pysqlite2. I just wondered could one (maybe latter is better one) be implemented in cx_Oracle directly. Of course this could be done by inheriting cx_Oracle's cursor-class. -- Jani Tiainen |