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.


In reply to db schema modules, recommendations? by converter

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.