Re: DB_DataObject and instance reuse

From: Date: Thu, 09 Jun 2005 12:53:04 +0000
Subject: Re: DB_DataObject and instance reuse
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-38050@lists.php.net to get a copy of this message
On Thu, 2005-06-09 at 13:19 +0200, Lukas Smith wrote: > Hi, > > I did a quick look and did see if this is possible. Looking at the MDB > notes in CVS it seems to be missing. > > It would be cool to be able to reuse an existing DB/MDB2 instance rather > than doing a new connection. > > For MDB2 you could use the MDB2::singleton() method. Alternatively you > can use the getDSN() method to get the DSN of the given instance. dataobject caches's it's connection objects, even though it doesnt really need to (as the DB backends usually do that anyway)... so It's not really an issue. Regards Alan > > regards, > Lukas >

« previous php.pear.dev (#38050) next »