Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Legacy applications often work with ext/mysql all over the place. This Zend_Db adapter allows to share the resources and benefit from Zend_Db.
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
library/Whitewashing/Db
tests/Whitewashing/Db
LICENSE
README

README

This project is an implementation of a Zend_Db_Adapter_Abstract
for the ext/mysql. It passes all unittests of the Zend_Db testsuite
for an adapter and should therefore be very robust.

The purpose for implementing an adapter for the deprecated ext/mysql
is the legacy application reason. A considerable share of people probably has
legacy applications that use mysql_* functions. You can inject this Zend
adapter into these applications wihtout having to use multiple db connections.

This adapter emulates prepared statements with positional characters ?.

Usage:

$db = new Whitewashing_Db_Adapter_Mysql($options);

To set or get the mysql Resource:

$mysql_conn = $db->getConnection();
$db->setConnectionResource($mysql_conn);
Something went wrong with that request. Please try again.