Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
As I have said in the comments under this post, if, in the future, you don't want to use the MyMySQLiDriver anymore, you create a new class, be utitMyPDODriver or anything else, which will again implement MyDatabase interface.
As I have said in the comments under this post, if, in the future, you don't want to use the MyMySQLiDriver anymore, you create a new class, be utMyPDODriver or anything else, which will again implement MyDatabase interface.
As I have said in the comments under this post, if, in the future, you don't want to use the MyMySQLiDriver anymore, you create a new class, be itMyPDODriver or anything else, which will again implement MyDatabase interface.
The problem is PDO and mysqli provide different interface to querying, creating transactions, so if useyou used for example mysqli in your application directly and then wanted to switch to PDO, you would have to refactor every single database call in your app.
The problem is PDO and mysqli provide different interface to querying, creating transactions, so if use for example mysqli in your application directly and then wanted to switch to PDO, you would have to refactor every single database call in your app.
The problem is PDO and mysqli provide different interface to querying, creating transactions, so if you used for example mysqli in your application directly and then wanted to switch to PDO, you would have to refactor every single database call in your app.