A gateway and abstraction layer for MySQL
Located in /Db/Gateway/Pdo/Mysql.php (line 28)
Xyster_Db_Gateway_Abstract | --Xyster_Db_Gateway_Pdo_Mysql
Class | Description |
---|---|
Xyster_Db_Gateway_Mysqli | A gateway and abstraction layer for MySQLi connections |
Creates a new MySQL DB gateway
Lists all foreign keys
The return value is an associative array keyed by the key name, as returned by the RDBMS.
The value of each array element is an associative array with the following keys:
KEY_NAME => string; foreign key name SCHEMA_NAME => string; name of database or schema TABLE_NAME => string; name of table COLUMNS => array; An array of the column names REFERENCED_TABLE_NAME => string; name of referenced table REFERENCED_COLUMNS => array; An array of the referenced column names ON_UPDATE => string; ON_DELETE => string;
Lists all indexes
The return value is an associative array keyed by the index name, as returned by the RDBMS.
The value of each array element is an associative array with the following keys:
INDEX_NAME => string; index name SCHEMA_NAME => string; name of database or schema TABLE_NAME => string; COLUMNS => array; An array of the column names PRIMARY => boolean; true if the index is a primary key UNIQUE => boolean; true if the index is a unique key
Renames an index
Sets the database adapter
Gets the SQL statement to create an index
Gets the SQL to create a table
This method does not process index/fulltext; indexes are not part of the SQL standard.
Gets the SQL statement to drop a foreign key from a table
MySQL Syntax for removal of a foreign key is different from SQL-92
Gets the SQL statement to drop an index
Gets the SQL statement to drop a primary key from a table
Gets the SQL statement to list the sequences
If the DBMS doesn't support sequences, this method won't be called. There is no need to throw an exception for this method, just leave an empty method body or return null.
Gets the SQL statement to rename a column in a table
Gets the SQL statement to rename an index
This method is left empty because in this class we overwrite the renameIndex method in the abstract gateway, which calls this one.
Gets the SQL statement to rename a table
Gets the SQL statement to set a column's NULL status
Gets the SQL statement to set the data type of a column
Translates a DataType enum into the correct SQL syntax
Inherited From Xyster_Db_Gateway_Abstract
Xyster_Db_Gateway_Abstract::__construct()
Xyster_Db_Gateway_Abstract::addColumn()
Xyster_Db_Gateway_Abstract::addForeign()
Xyster_Db_Gateway_Abstract::addPrimary()
Xyster_Db_Gateway_Abstract::createIndex()
Xyster_Db_Gateway_Abstract::createSequence()
Xyster_Db_Gateway_Abstract::createTable()
Xyster_Db_Gateway_Abstract::dropColumn()
Xyster_Db_Gateway_Abstract::dropForeign()
Xyster_Db_Gateway_Abstract::dropIndex()
Xyster_Db_Gateway_Abstract::dropPrimary()
Xyster_Db_Gateway_Abstract::dropSequence()
Xyster_Db_Gateway_Abstract::dropTable()
Xyster_Db_Gateway_Abstract::executeIndexBuilder()
Xyster_Db_Gateway_Abstract::executeTableBuilder()
Xyster_Db_Gateway_Abstract::getAdapter()
Xyster_Db_Gateway_Abstract::listForeignKeys()
Xyster_Db_Gateway_Abstract::listIndexes()
Xyster_Db_Gateway_Abstract::listSequences()
Xyster_Db_Gateway_Abstract::renameColumn()
Xyster_Db_Gateway_Abstract::renameIndex()
Xyster_Db_Gateway_Abstract::renameSequence()
Xyster_Db_Gateway_Abstract::renameTable()
Xyster_Db_Gateway_Abstract::setDefault()
Xyster_Db_Gateway_Abstract::setNull()
Xyster_Db_Gateway_Abstract::setType()
Xyster_Db_Gateway_Abstract::setUnique()
Xyster_Db_Gateway_Abstract::supportsForeignKeys()
Xyster_Db_Gateway_Abstract::supportsSequences()
Xyster_Db_Gateway_Abstract::_getAddColumnSql()
Xyster_Db_Gateway_Abstract::_getAddForeignSql()
Xyster_Db_Gateway_Abstract::_getAddPrimarySql()
Xyster_Db_Gateway_Abstract::_getCreateIndexSql()
Xyster_Db_Gateway_Abstract::_getCreateSequenceSql()
Xyster_Db_Gateway_Abstract::_getCreateTableSql()
Xyster_Db_Gateway_Abstract::_getDropColumnSql()
Xyster_Db_Gateway_Abstract::_getDropForeignSql()
Xyster_Db_Gateway_Abstract::_getDropIndexSql()
Xyster_Db_Gateway_Abstract::_getDropPrimarySql()
Xyster_Db_Gateway_Abstract::_getDropSequenceSql()
Xyster_Db_Gateway_Abstract::_getDropTableSql()
Xyster_Db_Gateway_Abstract::_getListSequencesSql()
Xyster_Db_Gateway_Abstract::_getRenameColumnSql()
Xyster_Db_Gateway_Abstract::_getRenameIndexSql()
Xyster_Db_Gateway_Abstract::_getRenameSequenceSql()
Xyster_Db_Gateway_Abstract::_getRenameTableSql()
Xyster_Db_Gateway_Abstract::_getSetDefaultSql()
Xyster_Db_Gateway_Abstract::_getSetNullSql()
Xyster_Db_Gateway_Abstract::_getSetTypeSql()
Xyster_Db_Gateway_Abstract::_getSetUniqueSql()
Xyster_Db_Gateway_Abstract::_makeArray()
Xyster_Db_Gateway_Abstract::_quote()
Xyster_Db_Gateway_Abstract::_setAdapter()
Xyster_Db_Gateway_Abstract::_translateType()
Documentation generated on Mon, 19 May 2008 17:08:26 -0400 by phpDocumentor 1.4.2