Base class for database schema definitions.

Hierarchy

Expanded class hierarchy of DatabaseSchema

Related topics

File

core/includes/database/schema.inc, line 161
Generic Database schema code.

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description
DatabaseSchema::$connection protected property The current database connection.
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 Backdrop table definition.
DatabaseSchema::createTableSql abstract protected function Generate an array of query strings suitable for creating a table.
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 Backdrop 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 public 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