abstract class DatabaseSchema
Hierarchy
- class \DatabaseSchema implements QueryPlaceholderInterface
Expanded class hierarchy of DatabaseSchema
Related topics
File
- includes/database/schema.inc, line 167
- Generic Database schema code.
Members
Name | Modifiers | Type | Description |
---|---|---|---|
DatabaseSchema::$connection | protected | property | |
DatabaseSchema::$defaultSchema | protected | property | Definition of prefixInfo array structure. |
DatabaseSchema::$placeholder | protected | property | The placeholder counter. |
DatabaseSchema::$uniqueIdentifier | protected | property | A unique identifier for this query object. |
DatabaseSchema::addField | abstract public | function | Add a new field to a table. |
DatabaseSchema::addIndex | abstract public | function | Add an index. |
DatabaseSchema::addPrimaryKey | abstract public | function | Add a primary key. |
DatabaseSchema::addUniqueKey | abstract public | function | Add a unique key. |
DatabaseSchema::buildTableNameCondition | protected | function | Build a condition to match a table name against a standard information_schema. |
DatabaseSchema::changeField | abstract public | function | Change a field definition. |
DatabaseSchema::createTable | public | function | Create a new table from a Drupal table definition. |
DatabaseSchema::dropField | abstract public | function | Drop a field. |
DatabaseSchema::dropIndex | abstract public | function | Drop an index. |
DatabaseSchema::dropPrimaryKey | abstract public | function | Drop the primary key. |
DatabaseSchema::dropTable | abstract public | function | Drop a table. |
DatabaseSchema::dropUniqueKey | abstract public | function | Drop a unique key. |
DatabaseSchema::fieldExists | public | function | Check if a column exists in the given table. |
DatabaseSchema::fieldNames | public | function | Return an array of field names from an array of key/index column specifiers. |
DatabaseSchema::fieldSetDefault | abstract public | function | Set the default value for a field. |
DatabaseSchema::fieldSetNoDefault | abstract public | function | Set a field to have no default value. |
DatabaseSchema::findTables | public | function | Find all tables that are like the specified base table name. |
DatabaseSchema::getFieldTypeMap | abstract public | function | Returns a mapping of Drupal schema field names to DB-native field types. |
DatabaseSchema::getPrefixInfo | protected | function | Get information about the table name and schema from the prefix. |
DatabaseSchema::indexExists | abstract public | function | Checks if an index exists in the given table. |
DatabaseSchema::nextPlaceholder | public | function | Implements QueryPlaceHolderInterface::nextPlaceholder(). Overrides QueryPlaceholderInterface::nextPlaceholder |
DatabaseSchema::prefixNonTable | function | Create names for indexes, primary keys and constraints. | |
DatabaseSchema::prepareComment | public | function | Prepare a table or column comment for database query. |
DatabaseSchema::renameTable | abstract public | function | Rename a table. |
DatabaseSchema::tableExists | public | function | Check if a table exists. |
DatabaseSchema::uniqueIdentifier | public | function | Implements QueryPlaceHolderInterface::uniqueIdentifier(). Overrides QueryPlaceholderInterface::uniqueIdentifier |
DatabaseSchema::__clone | public | function | Implements the magic __clone function. |
DatabaseSchema::__construct | public | function |
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!database!schema.inc/class/DatabaseSchema/7.x