Comments: on this page. Click to read or post your own.
PDO (general database) connector class.
Located in /sapphire/core/model/PDODatabase.php (line 7)
Object | --Database | --PDODatabase
Inherited from Database
Database::$fieldList
Database::$globalConn
Database::$indexList
Database::$schemaUpdateTransaction
Database::$supressOutput
Database::$tableList
Inherited from Object
Object::$builtInMethods
Object::$class
Object::$classConstructed
Object::$extensions
Object::$extension_instances
Object::$extraMethods
Object::$extraStatics
Object::$statics
Object::$static_cached
Connect to a database (MySQL, PostgreSQL, or MS SQL).
Return the number of rows affected (DELETE, INSERT, or UPDATE) by the previous operation.
Change the database type of the given field.
Alter an index on a table.
Alter fields and indexes in existing table.
Checks a table's integrity and repairs it if necessary - only available in MySQL, not supported in PostgreSQL and MS SQL.
Create the database and connect to it. This can be called if the initial database connection is not successful because the database does not exist.
Add the given field to the given table.
Create an index on a table.
Create a new table with an integer primary key called ID.
Returns true if the named database exists.
Get a list of all the fields for the given table.
The results are not totally equal for all databases (for example collations are handled very differently, PostgreSQL disregards zerofill,...) but as close as possible and necessary.
Build the connection string from input.
Get the database server, namely mysql, pgsql, or mssql.
Get the ID for the next new record for the table.
Get the autogenerated ID from the previous INSERT query. Simulate mysql_insert_id by fetching the highest ID as there is no other reliable method across databases.
OBSOLETE: Get the ID for the next new record for the table.
Get the database version.
Get a list of all the indexes for the given table.
Determine if the the table is active.
Query the database.
Rename an existing table, the TO is necessary for PostgreSQL and MS SQL.
Helper function used by checkAndRepairTable.
Switches to the given database.
Simply switching database in PDO is not possible, you need to create a new PDO object
Returns true if this database supports collations
Returns a list of all the tables in the database.
Table names will all be in lowercase. Returns a map of a table.
Inherited From Database
Database::alteration_message()
Database::alterTable()
Database::beginSchemaUpdate()
Database::createDatabase()
Database::createField()
Database::createTable()
Database::databaseError()
Database::dontRequireTable()
Database::endSchemaUpdate()
Database::fieldList()
Database::getConnect()
Database::getGeneratedID()
Database::isActive()
Database::manipulate()
Database::query()
Database::quiet()
Database::renameTable()
Database::replace_with_null()
Database::requireField()
Database::requireIndex()
Database::requireTable()
Database::tableList()
Database::transAlterField()
Database::transAlterIndex()
Database::transCreateField()
Database::transCreateIndex()
Database::transCreateTable()
Database::transInitTable()
Inherited From Object
Object::__construct()
Object::addMethodsFrom()
Object::addStaticVars()
Object::addWrapperMethod()
Object::add_extension()
Object::allMethodNames()
Object::buildMethodList()
Object::cacheToFile()
Object::cacheToFileWithArgs()
Object::create()
Object::createMethod()
Object::defineMethods()
Object::exists()
Object::extend()
Object::extInstance()
Object::getCustomClass()
Object::hasExtension()
Object::hasMethod()
Object::invokeWithExtensions()
Object::is_a()
Object::loadCache()
Object::parentClass()
Object::sanitiseCachename()
Object::saveCache()
Object::set_stat()
Object::set_uninherited()
Object::stat()
Object::strong_create()
Object::uninherited()
Object::useCustomClass()
Object::__call()
Object::__toString()
Documentation generated on Sun, 19 Oct 2008 06:44:17 +1300 by phpDocumentor 1.3.2