Database independent query interface
The main "DB" class is simply a container class with some static methods for creating DB objects as well as some utility functions common to all parts of DB.
The object model of DB is as follows (indentation means inheritance):
DB The main DB class. This is simply a utility class with some "static" methods for creating DB objects as well as common utility functions for other DB classes. DB_common The base for each DB implementation. Provides default | implementations (in OO lingo virtual methods) for | the actual DB implementations as well as a bunch of | query utility functions. | +-DB_mysql The DB implementation for MySQL. Inherits DB_common. When calling DB::factory or DB::connect for MySQL connections, the object returned is an instance of this class.
Located in /DB.php (line 431)
Return the DB API version
Create a new DB object including a connection to the specified database
Example 1.
Return a textual error message for a DB error code
Create a new DB object for the specified database type but don't connect to the database
Determines if a value is a DB_<driver> object
Determines if a variable is a DB_Error object
Tell whether a query is a data manipulation or data definition query
Examples of data manipulation queries are INSERT, UPDATE and DELETE. Examples of data definition queries are CREATE, DROP, ALTER, GRANT, REVOKE.
Parse a data source name
Additional keys can be added by appending a URI query string to the end of the DSN.
The format of the supplied DSN is in its fullest form:
Most variations are allowed:
Documentation generated on Wed, 28 Mar 2007 09:54:11 -0600 by phpDocumentor 1.3.1