PHP Classes
elePHPant
Icontem

anyDB: DB class for MYSQL, POSTGRES, SQLITE, PHPLIB, ODBC

Recommend this page to a friend!
  Info   View files View files (40)   DownloadInstall with Composer Download .zip   Reputation   Support forum (4)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2004-11-30 (11 years ago) RSS 2.0 feedStarStarStarStar 67%Total: 8,293 This week: 1All time: 192 This week: 1,047Down
Version License Categories
anydb 1.0GNU Lesser Genera...Databases
Description Author

If you believe that database abstraction is a good think, but you don't want to
join the religous fights about the best one out there, then we have a common
interest.

This abstract wrapper class provides easy and simple class methods to access the
most important db function. It implements the functionality for databases like
MYSQL, POSTGRESQL or SQLITE. It provides a wrapper for PEAR, PHPLIB, ADOdb and
METABASE and enables you to switch between these db abstraction layers with only
changing a single line of code. You gain the possibility to develop similar code
for more than 15 different databases.

Detailed documentation for all the complete interface exists.

A ligtweight interface supports the most common tasks in an easy and efficent
way, such as sending queries and fetching result sets or single variables.

Additional classes provide tools for accessing database data, dumping
information in html tables, exporting db content to CSV-files or as SQL
statements or presenting database content pagewise (e.g. for search results).

/////////////////////////////////////////////////////////////
// Interface of version 1.0:

function Constructor($libraryPath, $dbType, $preferredResType = ASSOCIATIVE_ARRAY)
function connect($host, $db, $user, $password)
function disconnect()
function query($query)
function getNext($resultType = PREDEFINED_VALUE)
function getAll($resultType = PREDEFINED_VALUE)
function getValue()
function getColumn($resultType = PREDEFINED_VALUE)
function execute($query, $resultType = PREDEFINED_VALUE)
function free()
function numRows()
function affectedRows()
function getIdentifier()
function getTables()
function escapeStr()

string $host
string $database
string $user
string $password

integer $prefResType
string $lastQuery
string $error
string $db
string $result

Picture of L
Name: L <contact>
Classes: 13 packages by
Country: Germany Germany

  Files folder image Files  
File Role Description
Files folder imageaddon (4 files)
Files folder imagebase (3 files)
Files folder imagedbs (7 files)
Files folder imagedocs (1 file)
Files folder imageexamples (18 files, 1 directory)
Files folder imagetest (2 files)
Plain text file anyDB.php Class class for instancating instances of AbstractDB
Accessible without login Plain text file changes.txt Class changes for version 1.2
Accessible without login Plain text file interface.txt Doc. interface description

  Files folder image Files  /  addon  
File Role Description
  Plain text file DBHelper.php Class utility class
  Plain text file Exporter.php Class utility class to export db content
  Plain text file PageWidget.php Class utility class
  Plain text file QueryHelper.php Class utility class

  Files folder image Files  /  base  
File Role Description
  Plain text file AbstractDB.php Class abstract wrapper class
  Plain text file BasicDB.php Class basic implementation
  Plain text file UtilityClass.php Class abstract base class

  Files folder image Files  /  dbs  
File Role Description
  Plain text file ADOdbDB.php Class Implementation for ADOdb
  Plain text file MetabaseDB.php Class Implementation for METABASE
  Plain text file MysqlDB.php Class Implementation for native php mysql functions
  Plain text file OdbcDB.php Class database layer for ODBC
  Plain text file PearDB.php Class Implementation for PEAR
  Plain text file PostgresDB.php Class Implementation for native php postgres functions
  Plain text file SQLite.php Class layer for SQLite

  Files folder image Files  /  docs  
File Role Description
  Accessible without login HTML file readme.html Doc. short overview

  Files folder image Files  /  examples  
File Role Description
Files folder imagetable_data (2 files)
  Plain text file connect.inc.php Conf. include file for connecting
  Plain text file createPageView.php Example example
  Plain text file disconnect.inc.php Example include to disconnect
  Plain text file dumpAll.php Example example
  Plain text file dumpColumn.php Example example
  Plain text file dumpDropdown.php Example examples
  Plain text file dumpNext.php Example example
  Plain text file exportToCsv.php Example export data in csv format
  Plain text file exportToSql.php Example dumps data as sql queries
  Plain text file getAll.php Example example
  Plain text file getAllExec.php Example exmample
  Plain text file getColumn.php Example example
  Plain text file getNext.php Example example
  Plain text file getNextBoth.php Example example
  Plain text file getNextNumeric.php Example example
  Plain text file getTables.php Example display all tables in current db
  Plain text file getValue.php Example get a single value
  Plain text file insert.php Example example

  Files folder image Files  /  examples  /  table_data  
File Role Description
  Plain text file users.dbx Conf. dbx database definition
  Plain text file users.mysql Conf. mysql database definition

  Files folder image Files  /  test  
File Role Description
  Plain text file test.inc.php Example example include
  Plain text file test1.php Example tests all db functions

 Version Control Unique User Downloads Download Rankings  
 0%
Total:8,293
This week:1
All time:192
This week:1,047Down
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:90%StarStarStarStarStar
Documentation:85%StarStarStarStarStar
Examples:78%StarStarStarStar
Tests:-
Videos:-
Overall:67%StarStarStarStar
Rank:543