Databases: dm.DB
Richard Munroe (contact me)
This a major release/revision of dm.DB. It contains the first port of the interface to a database other than MySQL, PostgreSQL. Support is provided for version 8.0 and 8.1 of PostgreSQL. A number of additional modifications have been made, including (preliminary) support for multiple SQL results sets. Full support will require a redesign of the dm.DB interface and will be incompatable with the current interface.
This is a redesign of the dm.DB class to allow it to be "easily" (the term is used loosely) ported to other databases. A compatibility class is provided so that applications that use the MySQL specific version of this package continue to work unchanged.
I am actively looking for folks interested in porting this to other databases and I will, as my development needs drive me, do so myself, but here's an opportunity for you to add value to a great package. Assuming that I get some additional database support in place, I'll look into modifying SQLData to provide support for things other than MySQL.
Support is currently available for :
- MySQL
- PostgreSQL 8.0
- PostgreSQL 8.1
This class is officially compatible with PHP 5.
Click here for detailed information about this class on phpclasses.org
Class
Abstract class interface for generic SQL databases
Class
All abstract interfaces.
Class
MySQL Database Abstraction Layer
Class
Factory to produce database access objects
Class
MySQL specialization of generic SQL database support
Class
Specialization for PostgreSQL 8.0 Support
Class
Specialization for PostgreSQL 8.1 Support
Data
Create MySQL test database
Data
Create PostgreSQL 8.x test database
Example
Example for MySQL
Example
Example for PostgreSQL 8.0
Example
Example for PostgreSQL 8.1
Example
Example for MySQL
Example
Example for PostgreSQL
Lic.
Modified NetBSD license used here