views:

447

answers:

4

I am working on a project that is built on an extended version of the default PDO and PDOStatement classes and as such it uses PDO style named parameters instead of the "?" placeholder for variables.

However, the client is now requesting that we look into using a different driver because their version OS X Web Server apparently doesn't have the ability to install this driver easily. So is anyone aware of any other database abstraction libraries or database access drivers that I could easily extend with our current set of functionality that takes named parameters like PDO does?

A: 

I've used PEAR::MDB2 as well as PDO. MDB2's documentation is a little shaky, but once you get it all working its a dream to work with.

http://pear.php.net/package/MDB2

Abyss Knight
A: 

I think Creole offers the requested features...but I didn't try it.

Jochen Hilgers
A: 

ADODB supports prepared statements.

R. Bemrose
+2  A: 

PDO and ADODB both support prepared statements, but the API is not great. Most frameworks provide an abstraction to one of those.

I'm using Zend_Db from the Zend Framework and I highly recommend it. It has a select class for composing queries (which turn into prepared statements when queried against the database adapter), a table class for handling CRUD operations - which I use as a base for most of my models and much more.

Check it out here.

Eran Galperin
I've actually built a custom abstraction layer that we're using but a lot of our custom framework mimics the approach taken by Zend so I had considered looking at the way Zend Framework mocked named parameters for the MySQL driver.
Noah Goodrich