Re: breaking out DB dsn parser
| From: | Robin Ericsson | Date: | Wed, 18 May 2005 17:42:30 +0000 |
| Subject: | Re: breaking out DB dsn parser | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-37726@lists.php.net to get a copy of this message | ||
Lukas Smith wrote:
Hi,Hi!
I dont yet know the specific array format that Wez will choose to add to PDO. I will certainly try and make sure that the keys are compatible as much as possible with PEAR. Some background infos: PDO uses a dsn string format that is very much based on the idea that one should use the native dsn string format where possible and use something that is as easy as possible to parse and stick into each specific driver. Therefore the format is very different for each RDBMS. As a possible remedy for this situation we agreed at the PDO meeting in Cancun to add a function that will accept an array and will return a dsn string specific to either one of the chosen drivers.We not make it accept a dns-string instead of an array? The dsn has been around for a very long time. regards, Robin