Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Advantage of using DBI

by Joost (Canon)
on Jul 02, 2009 at 19:51 UTC ( [id://776843]=note: print w/replies, xml ) Need Help??


in reply to Advantage of using DBI

MySQL comes with 2 basic interfaces: the libmysqlclient library, which provides C level access to mysql, and the mysql program, which provides a "human interface" to mysql (and which uses libmysqlclient itself).

When you're programming against an external program/system like a database, you generally want a precise and well-documented API, which means you use the the provided API and not try to hack the human interface if at all possible.

The DBI / DBD::mysql library is and has been THE standardized and supported interface for using libmysqlclient from perl for more than a decade. There is no other perl/mysql interface that's as well supported and fully functional. The old Msql/Mysql modules are ages behind the current functionality and Net::MySQL seems to be still in beta.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-04-19 11:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found