joomla/joomla-platform — pull request #610 by orware (2011-12-05 18:38:46+00:00)
Title: Database Package Refactoring (Clean Version)

Significant refactoring of the database package. Reorganized the various types of objects into folders (driver, query, exporter, importer). Added in a new base PDO class that can be extended from rather easily to create new drivers. As an example, a new Oracle PDO-based driver has been created. A new Preparable Interface for Queries has been added, allowing you to bind variables to a query. A new Limitable Interface for Queries has been added, allowing the SQL query to have the special (usually Database Vendor specific) limiting method added to the SQL string.