chromatic has asked for the wisdom of the Perl Monks concerning the following question:
What I have are a handful of classes (raw objects with default data) in modules -- things are already defined there. I would be creating new instances of those objects with different data. I'd like to store those in a database.
One option would be to gather up all of the data in the instance objects, db-ify it, and use the primary key of that row in the db to pull the data out and put it into a newly made object. That's not a bad solution.
Is there any way I can store new classes and objects in a database without having to use eval all the time or write the objects to the normal filesystem and then require them?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Storing Objects in a Database
by btrott (Parson) on Feb 19, 2000 at 01:33 UTC | |
by chromatic (Archbishop) on Feb 19, 2000 at 04:38 UTC | |
|
RE: Storing Objects in a Database
by Anonymous Monk on Feb 21, 2000 at 07:33 UTC |