Re: [RFC] [Under Discussion] PDO driver specific sub-classes
| From: | Ben Ramsey | Date: | Tue, 21 Jun 2022 14:39:48 +0000 |
| Subject: | Re: [RFC] [Under Discussion] PDO driver specific sub-classes | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-118037@lists.php.net to get a copy of this message | ||
On 6/20/22 18:01, Dan Ackroyd wrote:
Hi, Following previous discussions, here is an RFC to have DB specific classes for PDO. https://wiki.php.net/rfc/pdo_driver_specific_subclasses cheers Dan AckIs there a reason we shouldn't go ahead and add subclasses for all database connection types, even if they won't have new methods added to them? For example, if I create a connection to MySQL with PDO::connect, I would get back a PDOMysql instance, and so forth. -- Cheers, Ben