|
Re: convenience wrapper for looping through columns?: msg#00008lang.perl.modules.dbi.rose-db-object
On Jun 1, 2006, at 1:11 PM, John Siracusa wrote: That's bad code because it assumes that the column accessor name isin my code it is... i enforce that for simplicity, and then have '_' prepended accessor names for non-column name accessors You also have to decide whether you want a hash of accessor-name/ value pairs:i want the columns. But what it looks like you're trying to do is clone an object. If i want to clone the data/row representation of the db for user and serialization by non-rosedb code -- the clone methods look like they will include the object class, meta data, and rosedb associated items. i really just need a 'dict' / hash of the column_name/ column_value pairs . this data will be read by some custom perl object manipulating scripts that interface with python and php (sadly yes, php) ------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: questions about the manager, Guillermo Roditi |
|---|---|
| Next by Date: | questions about the manager vs the standard object, Jonathan Vanasco |
| Previous by Thread: | Re: convenience wrapper for looping through columns?, John Siracusa |
| Next by Thread: | Re: convenience wrapper for looping through columns?, John Siracusa |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |