Personally, I'd feel better with the code base in a set of files (e.g. where normal version control and debugging tools normally work). If you want to make sure you have proper "referential integrity" between names of procedures in your database and the names of module files in your code base, I expect that would be fairly easy to handle in any of at least a few different ways.
Using a "require" statement with a properly untainted/validated module name would seem like the safest, most accountable way to execute code in a data-dependent run-time environment.
Another issue to ponder (which might favor storing code as files rather than table fields): compare how write-access is controlled in the two storage methods, and who has that access. Which one are you more comfortable with, in terms of being sure that five minutes/hours/days/weeks from now, your code will still be there?
It's true that access control in the database can be controlled in lots of interesting ways, but is your setup one of the relatively rare cases where DBAs actually implement detailed specifications for access permissions on particular fields of particular tables for particular users on a regular basis, and do you consider that method of control to be preferable (all things considered) than what you get with normal file-permission settings? I expect some people would answer "yes", but not most people.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.