Re: Re: Templates, PHP Frameworks, and DB Abstraction?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This one time, at band camp, Lester Caine <lester@xxxxxxxxxxx> wrote:

 
> PDO is being pushed as a DB Abstraction library, but it only 'abstracts' 
> the calls to PHP, it does nothing to abstract the SQL if you want a 
> truly generic solution, if you need one, but if you don't then why 
> bother with abstraction ;)

Whoa dragon.... 

PDO is not being pushed as a DB Abstraction library. From the manual..
"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. PDO does not provide a database abstraction;
it doesn't rewrite SQL or emulate missing features. 
You should use a full-blown abstraction layer if you need that facility."

As you see, PDO provides a standard interface to databases, you might use
PDO to create an abstraction layer, but is not an abstraction layer in itself.

Kind regards
Kevin

-- 
"Democracy is two wolves and a lamb voting on what to have for lunch. 
Liberty is a well-armed lamb contesting the vote."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux