Assessment

We've touched on a number of the capabilities of PDO. We've used some of them in our application, but not all of them. This is by no means a definitive overview of PDO, but we certainly have enough information to make a judgment about the utility of this data-access abstraction layer.

Our application behaves exactly as it did without PDO. We haven't had to sacrifice any functionality and some things were much easier to implement—catching exceptions, for example. All our queries, triggers, and views work in exactly the same way. One minor inconvenience was converting the utility methods of our derived class, but we were able to implement them procedurally without loss of functionality. The object model of PDO is perhaps a little more ...

Get Object-Oriented PHP now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.