[Tutor] storing dict objects in in a database through SQLObject
Emily Fortuna
emily.fortuna at nist.gov
Mon Jul 3 18:00:32 CEST 2006
> The question is one of balance: are you more concerned with
> easily getting your dicts and tuples back intact, or with executing
> queries on the *contents* of those dicts and tuples?
Ideally, I'd like to be able to search the data in these dicts. Is
there a way to do this? If not, PickleCol seems to be the way to go...
To Kent:
> What is in the dicts and tuples?
I am trying to store several different classes of objects into the
database using SQLObject, some of which have dicts as attributes. The
classes may be extended and the dicts store variable amounts of entries.
I want this framework to be extensible as possible, but perhaps I am
taking the wrong approach. The object classes were designed with their
manipulation in mind, in addition to simply database storage. Is there a
better design you can suggest?
Emily
More information about the Tutor
mailing list