Home  |  Linux  | Mysql  | PHP  | XML
Date:Sat Aug  1 08:13:18 2009
Subject:Re: Perl 6 DBI API ideas
On Sat, Aug 1, 2009 at 2:15 AM, Darren Duncan<darren@darrenduncan.net> wrote:

> But the point is that $dbh is a *DBD::SQLite* object, that *does* DBI, not
> *is* a DBI object that wraps the driver.

I second that point. IMO, one of the most difficult things to
understand for driver authors with nowadays DBI is the difference
between their own dbh (drh, sth) and the DBI::db (DBI::dr, DBI::st).
The reasons for that design have never been clear to me. The only
reasons I can imagine is the ability to intercept method calls, but
there are other possibilities to achieve the same goals, for example a
public method (implemented in the super class, which of course belongs
to DBI) and a private method (which the driver implements).


Jochen


--
Base64 decoding, 300% faster than sun.misc.BASE64Decoder:
http://archive.netbsd.se/?ml=commons-dev&a=2008-05&t=7522166
Navigate in group perl.dbi2.dev at sever nntp.perl.org
Previous Next





  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants