Welcome Guest, Not a member yet? Register   Sign In
PDO Drivers
#4

(01-17-2018, 04:08 AM)dturner123 Wrote: Isn't that the point of PDO though?
From the PHP PDO documentation:
Quote:PDO provides a data-access abstraction layer, which means that, regardless of which database you're using, you use the same functions to issue queries and fetch data.

You could substitute CodeIgniter for PDO in the above and be completely accurate.

(01-17-2018, 04:08 AM)dturner123 Wrote: Why does CI support PDO drivers when it doesn't actually use the PDO methods? It would seem rather misleading?!

If it offered one-to-one matches for PDO methods wouldn't it be PDO?

CI seems to use PDO methods where appropriate to fit the CI abstraction. I don't know whether CI should be using PDO::prepare() or PDOStatement::execute() instead of the analogous methods in the current implementation. It's an interesting question. But is it misleading? IMO, not when you consider we're talking abstraction layers.

That CI offers a PDO database driver has always struck me a a bit weird. Why put an abstraction layer on top of another abstraction layer? Sounds like the marketing people got involved in design decisions.
Reply


Messages In This Thread
PDO Drivers - by dturner123 - 01-16-2018, 08:47 AM
RE: PDO Drivers - by Narf - 01-17-2018, 03:53 AM
RE: PDO Drivers - by dturner123 - 01-17-2018, 04:08 AM
RE: PDO Drivers - by dave friend - 01-17-2018, 03:29 PM
RE: PDO Drivers - by sneakyimp - 09-07-2018, 04:13 PM
RE: PDO Drivers - by Narf - 01-19-2018, 02:32 PM
RE: PDO Drivers - by kilishan - 01-17-2018, 08:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB