http://qs321.pair.com?node_id=322784


in reply to Re: Why Perl does not support database access through core modules?
in thread Why Perl does not support database access through core modules?

Yeah, but as someone who spent way too much time using SDBM and GDBM it would be nice if the Berkeley DBs were removed from the core and replaced with DBI and DBD::CSV. That way you get instant access to a lightweight database using standard DBI and SQL as well as a pre-installed hook to install whatever other DBD you need.

Of course someone probably loves the quick-and-dirty nature of the Berkeley DBM's, but I think DBI is better even for lightweight stuff. The coding/execution overhead isn't that much greater and later on it's trivial to switch out DBD::CSV with something more serious. Going from *DBM to DBI on the other hand requires a huge rewrite. Better just to encourage people to do it the DBI way to begin with, and putting those 2 modules in the core would go a long way towards doing that.

Gary Blackburn
Trained Killer

Replies are listed 'Best First'.
Re: Re: Re: Why Perl does not support database access through core modules?
by Anonymous Monk on Jan 21, 2004 at 10:23 UTC
    Yeah, but as someone who spent way too much time using SDBM and GDBM it would be nice if the Berkeley DBs were removed from the core

    Just a note: SDBM and GDBM are *not* Berkeley DB's (DB_File is the standard Berkeley DBM in the core). And, by the way, DB_File (and the other DBM's) are exceedingly useful tools and should stay in the core. As for DBI/DBD, I'm for a leaner core and one or more (semi) officially recognized SDK packages containing database, networking, templating, et cetera.