For lightweight, simple, no-frills, it's hard to beat DBD::SQLite. It does have its limitations though, one of which is that its implementation of SQL is a little less than complete and total. Nevertheless, it provides all of the essentials, so long as essential needs aren't too elaborate. You can read up on SQLite's implementation of SQL and its features at http://www.sqlite.com. SQLite's source is in the public domain, and the CPAN module is distributed under the same terms as Perl. SQLite, as others have mentioned, installs everything you need when you install the single CPAN module DBD::SQlite. And the databases are contained in single files.

If your needs are more involved, more demanding, and if you can live with increased complexity, then PostgreSQL is another very good option. Its implementation of SQL and its feature set are more complete, and include many advanced features. I doubt that you'll ever outgrow it, unless you become the next eBay or something. PostgreSQL is distributed under the same license as BSD, and is also free. You can find the database engine at http://www.postgresql.com, and the Perl drivers for it at DBD::Pg.

Both DBD::SQLite, and DBD::Pg are designed to be used with DBI.

Good luck!


Dave


In reply to Re: Simple & convenient Perl database by davido
in thread Simple & convenient Perl database by santander

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.