Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Why Perl does not support database access through core modules?

by rob_au (Abbot)
on Jan 21, 2004 at 04:26 UTC ( #322781=note: print w/ replies, xml ) Need Help??


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

I would note that Perl does ship with support for simple hash-based databases through the DB module. The reason as to why Perl doesn't incorporate DBI and DBI-based module support within the core distribution, is most likely due to the wide variety of databases, access methods and libraries which are available for various databases - Which databases should be supported in the core? MySQL? mSQL? PostgreSQL? Oracle? SQLite? Sybase? What version of libraries for each database? Do we include pure-perl versions as well as XS versions?

There are many people who would argue that the core distribution is already bloated - The addition of support for the many databases and libraries available would only grow the distribution further.

 

perl -le "print unpack'N', pack'B32', '00000000000000000000001010110000'"


Comment on Re: Why Perl does not support database access through core modules?
Re: Re: Why Perl does not support database access through core modules?
by pg (Canon) on Jan 21, 2004 at 05:57 UTC
    There are many people who would argue that the core distribution is already bloated - The addition of support for the many databases and libraries available would only grow the distribution further.

    I agree.

    However, to me, it seems to be a better idea, to have the database access interface bundled in Perl core, but leave individual database drivers out, and have them published and maintained through CPAN or vendors.

      Wouldn't that kind of defeat the purpose? “This is the standard database interface for you to use, but, ehh, oh, you still have to download and install the specific driver for the database you're using.” Besides, your suggestion is already practice, you can download database drivers and the interface from CPAN, etc. and this is documented in perlfaq8.

      Arjen

        You'll probably will still have to download, install and configure the database you plan to use, anyway, if you plan on using MySQL or PostGres. That is a much more daunting task. For more commercial databases, you have to start by downloading and installing the client libraries. Compared to these tasks, installing DBI is easy.

        Besides, DBI without any DBD::* drivers, is useless.

        OTOH, perhaps it wouldn't be unreasonable if Activestate started to include both DBI and DBD::ODBC with ActivePerl for Windows. That'd let those people have immediate access to their MS Office databases.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://322781]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2014-07-28 05:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (186 votes), past polls