Re: Persist Python objects to a MySQL database?
> I did a Google search (+persist +python +MySQL) and saw a few references to
> persisting a Python object (class instance) to a MySQL database, but nothing
> extensive. Is there anything new that does this, hopefully in a relatively
> transparent manner?
You can always pickle the object to a string (using pickle.dumps) and
save it in the database. Later use pickle.loads to load it.
|All times are GMT. The time now is 01:49 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.