[Twisted-Python] About adodb

Dave Peticolas dave at krondo.com
Tue Oct 5 11:03:19 EDT 2004

On Sat, 2004-10-02 at 02:35, Simon wrote:
> >db_row has already been mentioned on this list as a nice module. 
> >But wouldn't the associative array aspects of adodb eliminate the need
> for db_row?
> Yep, functionwise it would be pretty much the same. db_row however has
> the advantage of using a different storage mechanism eliminating the
> need for a dictionary in each object (using __slots__). If you load a
> lot of objects that should be an advantage. My idea is to subclass
> db_row to add some data validation routines. Perhaps we could add some
> foreignkey functionality also to make it a worthy replacement of
> RowObject.

That sounds like a good plan. An extension to adbapi to return
db_row objects would be helpful too. There is a patch to do that
now: http://www.twistedmatrix.com/users/roundup.twistd/twisted/issue632
But I think db_row is a better solution. Maybe you could post your
code to that bug?


More information about the Twisted-Python mailing list