Re: Database File Advice
by jeffa (Bishop) on Jan 13, 2004 at 19:26 UTC
|
How about SQLite? The corresponding CPAN module is
DBD::SQLite. If you decide to upgrade to an RDMS, you should be able to use
The SQL Fairy without a hitch (not to mention you shouldn't
have to change most of code either).
Also, take some time to familiarize yourself with DBD::AnyData. If you play your
cards right, this project will write itself. ;)
| [reply] |
|
| [reply] |
|
And that's a problem how? You should have most of those modules anyway (I will never be able to understand how people perceive prerequisites which shave years of development time as problems).
| [reply] |
|
Re: Database File Advice
by dragonchild (Archbishop) on Jan 13, 2004 at 20:05 UTC
|
You don't use a database file, you use a database and use SQL to search it. (At least, that's the standard.) You will probably use DBI and the appropriate DBD modules to access it from your scripts.
Most small projects use MySQL as their database, though PostgreSQL is popular. For large projects, you might have access to Oracle or Sybase, and there's many others. Tiny project might be able to get away with SQLite.
More info could help, like what system you're on. If you're on Windows, SQL*Server (accessed using [DBD::Sybase) is often a good choice.
------
We are the carpenters and bricklayers of the Information Age.
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
| [reply] |
Re: Database File Advice
by CountZero (Bishop) on Jan 13, 2004 at 20:30 UTC
|
Any database using SQL would fit the description.SQL allows you to define, create and delete your tables; it is ideally suited to search the database, insert, update and delete records and most databases servers (such as MySQL) are relatively fast. The DBI-framework and the DBD-drivers allow easy interfacing with most database engines/servers and if you later want to change the underlying database, you can do so with little or no change to your programs (unless you have relied on database specific things -- which you should avoid if you can).
CountZero "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
| [reply] |
|
| [reply] |
|
You know, that same site has PostgreSQL gotchas too.
If someone said "Perl is soooo 90s, use Python instead", you'd likely object. Rightfully so — I would too.
There are good reasons to use either database (and I've used both on different projects), but "it's soooo 90's" is not one of them. People who ask "which database should I use?" deserve better answers.
| [reply] |
|
|
| [reply] |
Re: Database File Advice
by 3dbc (Monk) on Jan 13, 2004 at 20:03 UTC
|
DBD::CSV has always worked when I just want to create a simplistic database format conducive for cross platform portability and the file format is relatively small since it contains only comma separated variables. As for the searching and updating I would recommend PERL DBD::CSV or you could use an abundance of products with a wide range of functionality like M$ Excel, M$ Access, Notepad, Edit Plus, even VI, etc. to view the data and search+update the data.
-3DBC
| [reply] |