The dbd::csv and dbd::xbase modules will let you run your own mini database without installing any additional rdbms software. They will, however, create multiple files per db.
Is the single file requirement for runtime or for convenience? There are ways you could make it feel like a single file db... You could store your db files in a single tar file and then extract them at runtime, stuff them back in on program exit. This would give your code a very crude rollback functionality also.
What about running against dbd::ram and then using something like dbd::anydata to dump the entire contents to a file periodically?
Since you're going to take a performance hit with *any* sort of perl based db solution, you could just alter your design. Combine your tables into one big table and just query it for what you're looking for.
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.