shelve like interface to MySQLdb

Guenther Starnberger sysfrog at gmail.com
Thu Sep 2 17:32:02 EDT 2004


Hi,

> I've done some googling and came up empty. Is there a simple
> way to create a shelve like interface to a MySQL table? The
> keys would be a direct mapping to the primary key in the table.

The only possibility to do this without object-specific
(de-)serializers would be to safe the pickled state of the object in
the database and this is probably not what you want.

I would suggest using an object-relational mapper like SQLObject
(http://sqlobject.org/) for this task.

cu
/gst




More information about the Python-list mailing list