converter has asked for the wisdom of the Perl Monks concerning the following question:
I'm working on a web site that will include weblog and other features similar to those offered by the monastery (for what it's worth, I'm using MySQL and a bit of OO Perl) and I'm trying to avoid a bit of wheel inventing.
In the interest of sanity and efficiency, I'm trying to design the code so that changes to the db and queries are limited to a single file. I have written an OO module that wraps the Perl DBI and includes methods that return formatted query data. This seems like a nice arrangement as it allows me to restrict changes to db structure and queries to a single file, but I'm wondering if there are any more elegant solutions already available that will save me time and frustration when I need to write code to enforce referential integrity, manage tables, replicate, create a new database and restore after a crash, etc.
I've noted a few potential solutions on The CPAN, but they seem a little heavy for my needs, and depend on other modules that won't be available to me and which I probably won't be permitted to install on one of the two servers on which this code will run.
I offer my thanks in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: db schema modules, recommendations?
by jeroenes (Priest) on Jul 10, 2001 at 00:36 UTC | |
by converter (Priest) on Jul 10, 2001 at 01:09 UTC | |
by jeroenes (Priest) on Jul 10, 2001 at 12:11 UTC | |
|
Re: db schema modules, recommendations?
by converter (Priest) on Jul 11, 2001 at 01:00 UTC | |
|
Re: db schema modules, recommendations?
by Starky (Chaplain) on Jul 10, 2001 at 03:12 UTC | |
by converter (Priest) on Jul 11, 2001 at 00:53 UTC |