PHP Classes
Icontem

Class: phpPostgreSQLdB


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of tmchow  >  phpPostgreSQLdB  >  Download  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: phpPostgreSQLdB Support forum
Base name: phppostgesqldb
Description: Abstraction layer for PostgreSQL DB
Related top rated classes:
Version: -
Required PHP version: -
License: GNU General Public License (GPL)
All time users: 1240 users
All time rank: 2106
Week users: 0 users
Week rank: 3214
 
  Author   Group folder image Groups   Detailed description  
  Rate classes User ratings   Applications   Files Files  

Author

Picture of tmchow
Name: tmchow <e-mail contact>
Published packages: 1 Browse this author's classes Browse this author's classes
Country: United States United States - PHP jobs in United States
Home page: ???
Age: ???
All time rank: 1342
Week rank: 2007

Groups

Group folder image Databases Database management, accessing and searching View top rated classes

Detailed description

Class that provides an abstraction layer above the PHP PostgreSQL API. This centralizes all the database connection info such as host, port, etc. Same class an be used to connect to multiple databases on different servers and on different ports.

In addition to "normal" stuff that you'd expect from a db abstraction layer, it also supports transactions among other things. Comprehensive error checking/management.

Revision History:
*** see class header for revision history ***

Sample usage:

//// Example #1 ////////////////

include("include/dblib.php");
$db = new phpDB();
$db->connect("foobar");
$db->beginTrans();

if (!$db->exec("INSERT INTO weather VALUES ('Vancouver', 1, 5, 0.25)")) {
echo $db->errorMsg();
$db->rollbackTrans();
}

$db->commitTrans();
if (!$db->exec("SELECT * FROM weather"))
echo $db->errorMsg();

//// Example #2 ////////////////

include("include/dbutil.php");
$db = new phpDB();
$db->connect("foobar");
$db->exec("SELECT * from TREVIN");

while ($db->nextRow()) {

// can access like objects!
$rs1 = $db->fobject();
echo "$rs->description : $rs->color : $rs->price <br>";

// Can access like an array!
$rs2 = $db->farray();
echo "$rs2[0] : $rs2[1] : $rs[2] <br>";
}

User ratings

Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Sufficient (75.0%)
Sufficient (75.0%)
-
-
-
-
Not sure (45.0%)
1565
Month:
Not yet rated by the users

Applications that use this class

No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

Files

File Role Description
Plain text file dbutil.inc.php ??? Main class file
Download all files: phppostgesqldb.tar.gz phppostgesqldb.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products