On Thu, Jan 03, 2002 at 01:25:03AM +0000, Tim Bunce wrote: : Here's what I'm thinking, and developing, at the moment... : [Please read and think about it all before commenting] : [Also, I've CC'd Matt Sergeant <[EMAIL PROTECTED]>, : please ensure that he's CC'd on any replies. Thanks.]
I'm coming from a userland DBI programmer perspective, not a DBI developer, so some of what I say may just be naive. : Simply calling $dbh = MyDBI->connect(...) will be interpreted : as a request to have the $dbh blessed into the MyDBI::db class : (and a $dbh->prepare will return $sth blessed into MyDBI::st). : A warning will be generated if @MyDBI::db::ISA is empty. Will it automatically update @MyDBI::db::ISA in the process? I would think that that would be an easy step, and honestly, that would make subclassing DBI a lot easier, especially for simple things where all you're doing is overriding the connect() method or something similar. That may not be possible, though. What about recognizing multiple levels of inheritance, like: WebDBI -> MyDBI -> DBI Will it be smart enough to pick that kind of thing out? I suppose that DBI would have to look at the ISA chain to see exactly what ::db WebDBI would need to be blessed into. In this case, that would be MyDBI::db. WebDBI::db would also need to inherit from MyDBI::db if not already doing so. That would make it a little easier for Apache::DBI to handle DBI subclasses, something which isn't impossible now, but is a little annoying. * Philip Molter * Texas.net Internet * http://www.texas.net/ * [EMAIL PROTECTED]
