Re: [CDBI] Turning Class::DBI on its side

Dave Howorth <dhoworth-fDajt2Yx3S8pY9vWkoisglpr/1R2p/[email protected]> Wed, 25 Jul 2007 14:43:30 +0100
Newsgroups gmane.comp.lang.perl.modules.class-dbi
Organization MRC Centre for Protein Engineering
Message-ID <[email protected]>
Duncan Ferguson wrote:
> Bit of a strange cry for help this (not written a module before so some
> of my terminology is probably off, sorry)
> 
> I want to turn the Class::DBI objects on their side; I want to store
> some application configuration within a database table, i.e.

Instead of turning Class::DBI on its side, why not just turn the table
on its side?

Table: prefs
+----+-------------------+--------------+-----------+
| id | filename          | item_enabled | task_name |
+----+-------------------+--------------+-----------+
|  0 | /path/to/file.txt |            1 | something |
+----+-------------------+--------------+-----------+

Then the accessors will JustWork (TM)

Cheers, Dave