PHP Classes

dm.DB: Generic database access wrapper

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 46%Total: 2,171 All time: 1,802 This week: 488Up
Version License PHP version Categories
dm_db 1.0.0Custom (specified...4.0Databases
Description 

Author

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.

Picture of Richard Munroe
Name: Richard Munroe is available for providing paid consulting. Contact Richard Munroe .
Classes: 22 packages by
Country: United States United States
Age: 73
All time rank: 112 in United States United States
Week rank: 178 Down22 in United States United States Down
Innovation award
Innovation award
Nominee: 3x

Winner: 1x

  Files folder image Files (16)  
File Role Description
Plain text file class.abstract.DB.php Class Abstract class interface for generic SQL databases
Plain text file class.abstract.independent.DB.php Class All abstract interfaces.
Plain text file class.DB.php Class MySQL Database Abstraction Layer
Plain text file class.factory.DB.php Class Factory to produce database access objects
Plain text file class.MySQL.DB.php Class MySQL specialization of generic SQL database support
Plain text file class.PostgreSQL80.DB.php Class Specialization for PostgreSQL 8.0 Support
Plain text file class.PostgreSQL81.DB.php Class Specialization for PostgreSQL 8.1 Support
Accessible without login Plain text file DB.MySQL.sql Data Create MySQL test database
Accessible without login Plain text file DB.PostgreSQL81.sql Data Create PostgreSQL 8.x test database
Accessible without login Plain text file example.MySQL.php Example Example for MySQL
Accessible without login Plain text file example.PostgreSQL80.php Example Example for PostgreSQL 8.0
Accessible without login Plain text file example.PostgreSQL81.php Example Example for PostgreSQL 8.1
Accessible without login Plain text file example1.MySQL.php Example Example for MySQL
Accessible without login Plain text file example1.PostgreSQL81.php Example Example for PostgreSQL
Accessible without login Plain text file license.txt Lic. Modified NetBSD license used here
Accessible without login Plain text file makedoc.sh Data Generate documentation using phpdoc

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Reuses Unique User Downloads Download Rankings  
 0%3
Total:2,171
This week:0
All time:1,802
This week:488Up
 User Ratings  
 
 All time
Utility:68%StarStarStarStar
Consistency:56%StarStarStar
Documentation:-
Examples:68%StarStarStarStar
Tests:-
Videos:-
Overall:46%StarStarStar
Rank:3127