Login   Register  
PHP Classes
elePHPant
Icontem

Base DB: Base class for SQL database access abstraction

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2009-12-24 (4 years ago) RSS 2.0 feedStarStarStarStar 73%Total: 2,225 This week: 2All time: 1,641 This week: 949Up
Version License PHP version Categories  
base_db 57GNU Lesser General Publ...5.0Databases
Description Author  

This is a base class for implementing an SQL database access abstraction.

It provides an easy way to deal with databases. it will escape your values by using smart question marks parameters in conditions strings, return most of result in php array instead of resource result set (but you still can access the resource if you really want it) and will assist you in most common databases operation such as establishing database connections, opening a database, quoting a string value, executing a query, retrieving query results as an array, listing the database tables, get the keys of a table, optimizing a table, retrieving the last error that occurred, etc..
It also permit to work on multiple databases and to get unique instances of database connection in a simple way "db::getInstance()"

It also include a class dbProfiler to help you profiling your queries.

Picture of Jonathan Gotti
Name: Jonathan Gotti is available for providing paid consulting. Contact Jonathan Gotti .
Classes: 13 packages by
Country: France France
Age: 38
All time rank: 694 in France France
Week rank: 211 Down11 in France France Down
Innovation award
Innovation award
Nominee: 4x

  Files folder image Files  
File Role Description
Accessible without login Plain text file class-db.php Class base abstraction class
Plain text file class-sampledb.php Example example for extended base_db
HTML file classdb.html Doc. Documentation (by Doxygen)
HTML file classsampledb.html Doc. Documentation of an extended db class
Plain text file README Doc. readme file
Plain text file slicesample.php Example easy pagination sample

 Version Control Reuses Unique User Downloads Download Rankings  
 0%2Total:2,225All time:1,641
 This week:2This week:949Up
 User Ratings  
 
 All time
Utility:91%StarStarStarStarStar
Consistency:91%StarStarStarStarStar
Documentation:91%StarStarStarStarStar
Examples:91%StarStarStarStarStar
Tests:-
Videos:-
Overall:73%StarStarStarStar
Rank:108