List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:September 24 2002 3:35am
Subject:Re: Speaking of DBI -v- Net::MySQL (Was: RE: first dbi access
with perl and lost)
View as plain text  
At 21:51 +0200 9/22/02, Thoenen, Peter  Mr.  EPS wrote:
>Following this conversation myself (also a perl db newbie :) ... before
>always just used php) and curious if you know definitely what db vendor you
>are going to be using (mysql in this case), any reason to use dbi; as
>opposed to just using vendor specific or net::mysql; .  Is it just a
>portability issue?


The reason to use DBI is that you can't use *any* of the vendor specific
DBD-level drivers without it.  It's not an either-one-or-the-other question.
It's both or neither.

DBI is useless without at least one driver for connecting to a specific
database.

DBD::<vendor> is useless without DBI; Perl scripts don't communcate directly
with DBD drivers. They communicate with DBI, which speaks to the database
through the driver.

Haven't used Net::MySQL, so cannot comment on that.
Thread
Speaking of DBI -v- Net::MySQL (Was: RE: first dbi access with perl and lost)Peter  Mr.  EPS Thoenen24 Sep
Re: Speaking of DBI -v- Net::MySQL (Was: RE: first dbi accesswith perl and lost)Paul DuBois24 Sep
  • Re: Speaking of DBI -v- Net::MySQL (Was: RE: first dbi access with perl and lost)Tatsuhiko Miyagawa24 Sep