Re: DB_DataObject and instance reuse
| From: | Alan Knowles | Date: | Thu, 09 Jun 2005 13:20:33 +0000 |
| Subject: | Re: DB_DataObject and instance reuse | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-38052@lists.php.net to get a copy of this message | ||
I'm not sure it's a big issue, I dont think many of the backends
actually create new connections. and you can usually use $DB =
$DB_DataObject->getDatabaseConnection(); to get the connection object
anyway.
Regards
Alan
On Thu, 2005-06-09 at 14:50 +0200, Lukas Smith wrote:
> Alan Knowles wrote:
> > On Thu, 2005-06-09 at 13:19 +0200, Lukas Smith wrote:
>
> > 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.
>
> well i was talking more of a scenario where you are using DB or MDB2
> directly in some parts of your code and DB_DataObject in other.
>
> regards,
> Lukas
>