Question

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?

Was it helpful?

Solution

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.

OTHER TIPS

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

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top