Re: [RFC] [Discussion] Implement SQLite "openBlob" feature in PDO
| From: | Matteo Beccati | Date: | Wed, 27 Sep 2017 09:17:35 +0000 |
| Subject: | Re: [RFC] [Discussion] Implement SQLite "openBlob" feature in PDO | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-100781@lists.php.net to get a copy of this message | ||
Hi Lester,
On 27/09/2017 11:00, Lester Caine wrote:
> The bigger question is - Should database specific extensions to PDO be
> allowed at all? The WHOLE base of PDO was that it would allow easy data
> management between DIFFERENT databases. This should be implemented in a
> way that mirrors blobs generically otherwise the generic database driver
> should be used since a switch to another PDO driver will fail. This
> should apply to any targeted extension to PDO, so anything that breaks
> the generic base data needs tidying up.
That's a wrong assumption. PDO was born to allow quickly writing
database drivers, not as an abstraction layer that allows you to
seamlessly move from one another. I thought the same but I was corrected
by someone that was involved in the process.
Cheers
--
Matteo Beccati
Development & Consulting - http://www.beccati.com/