[SQLObject] Another newbie question: copying objects?
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Mark M. <mar...@me...> - 2011-03-08 23:56:45
|
Hi All, I have the program I'm working on doing basically what I want now, copying a table's data from one DB to another. But! Is there a way to do this without specifying all the field names? Right now I am just using two fields: zips = zipcode.select() for z in zips: newz = zipcode(id = z.id, city = z.city, connection = peconnection) This works, but where there are 14 fields in other tables it's going to be a pain. I couldn't find anything about object copy or assignment in the documents, but isn't there a way to do this? Thanks for any suggestions. -- Mark McWiggins Principal Solutions Engineer mar...@me... 443-656-3311 ext 344 |