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

From: Date: Mon, 03 Jul 2006 11:13:56 +0000
Subject: Re: Re: Templates, PHP Frameworks, and DB Abstraction?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-239085@lists.php.net to get a copy of this message
This one time, at band camp, Lester Caine <lester@lsces.co.uk> 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."

« previous php.general (#239085) next »