Welcome Guest, Not a member yet? Register   Sign In
Poll: Which database handlers would be important to you?
You do not have permission to vote in this poll.
MS-SQL
25.60%
32 25.60%
DB2
2.40%
3 2.40%
Interbase
4.00%
5 4.00%
Oracle
10.40%
13 10.40%
AWS ...
8.00%
10 8.00%
PDO
49.60%
62 49.60%
Total 125 vote(s) 100%
* You voted for this item. [Show Results]

[feature] Database Handlers
#6

(03-13-2019, 07:45 AM)mladoux Wrote: I prefer PDO, as that's where all database extensions should be going eventually anyway, and all popular databases including many that aren't already have PDO drivers built into PHP. PDO is intended to provide a pretty reliable API that can port through many databases seamlessly. Is it perfect, no, but it provides a good starting foundation. This is why the most popular ORM and DBAL libraries are based on it, since it makes writing portable database code simpler. My recommendation would be to implement PDO, and once that's done, to add any other layers as development time arises to support the more niche use cases that require a database specific driver.

To be clear here - I believe most popular ORM and DBAL libraries use PDO because it's less work for them. CodeIgniter's database layer has always done many of the things that PDO takes care of for you. If I were starting from scratch you better believe I'd build on top of PDO and save work. At least when this conversion was started 3 years ago the non-PDO drivers of several popular engines still have more complete feature set than their PDO counterparts. I'm not sure if this is still true or not, honestly.

But just adding PDO support doesn't automatically make any database engine work with our Query Builder, Forge, etc. Those each still have to be custom tailored as they all have their own unique implementation details. PDO just abstracts the connection and basic query capabilities.
Reply


Messages In This Thread
[feature] Database Handlers - by jlp - 03-08-2019, 09:34 AM
RE: [feature] Database Handlers - by InsiteFX - 03-08-2019, 09:41 AM
RE: [feature] Database Handlers - by php_rocs - 03-08-2019, 12:19 PM
RE: [feature] Database Handlers - by mladoux - 03-13-2019, 07:45 AM
RE: [feature] Database Handlers - by kilishan - 03-13-2019, 11:08 AM
RE: [feature] Database Handlers - by donpwinston - 03-13-2019, 10:18 AM
RE: [feature] Database Handlers - by ealegria - 06-13-2019, 12:20 PM
RE: [feature] Database Handlers - by dave friend - 06-14-2019, 10:34 PM
RE: [feature] Database Handlers - by pstef - 09-22-2019, 12:25 PM
RE: [feature] Database Handlers - by dave friend - 09-23-2019, 06:04 PM
RE: [feature] Database Handlers - by includebeer - 09-25-2019, 10:05 AM
RE: [feature] Database Handlers - by dave friend - 09-25-2019, 07:18 PM
RE: [feature] Database Handlers - by includebeer - 09-26-2019, 10:31 AM
RE: [feature] Database Handlers - by mladoux - 10-04-2019, 12:14 PM
RE: [feature] Database Handlers - by Digital_Wolf - 09-26-2019, 11:37 AM
RE: [feature] Database Handlers - by ciadmin - 09-26-2019, 12:29 PM
RE: [feature] Database Handlers - by maszgalang - 11-08-2019, 05:28 AM
RE: [feature] Database Handlers - by ytetsuro - 01-14-2020, 12:57 AM
RE: [feature] Database Handlers - by MGatner - 01-19-2020, 12:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB