DB_DataObject and instance reuse
| From: | Lukas Smith | Date: | Thu, 09 Jun 2005 11:19:30 +0000 |
| Subject: | DB_DataObject and instance reuse | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-38049@lists.php.net to get a copy of this message | ||
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.
regards,
Lukas