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
Name Modifiers Typesort descending Description
DatabaseSchema::__construct public function
DatabaseSchema::__clone public function Implements the magic __clone function.
DatabaseSchema::uniqueIdentifier public function Implements QueryPlaceHolderInterface::uniqueIdentifier(). Overrides QueryPlaceholderInterface::uniqueIdentifier
DatabaseSchema::nextPlaceholder public function Implements QueryPlaceHolderInterface::nextPlaceholder(). Overrides QueryPlaceholderInterface::nextPlaceholder
DatabaseSchema::getPrefixInfo protected function Get information about the table name and schema from the prefix.
DatabaseSchema::prefixNonTable public function Create names for indexes, primary keys and constraints.
DatabaseSchema::buildTableNameCondition protected function Build a condition to match a table name against a standard information_schema.
DatabaseSchema::tableExists public function Check if a table exists.
DatabaseSchema::findTables public function Find all tables that are like the specified base table name.
DatabaseSchema::fieldExists public function Check if a column exists in the given table.
DatabaseSchema::getFieldTypeMap abstract public function Returns a mapping of Backdrop schema field names to DB-native field types.
DatabaseSchema::renameTable abstract public function Rename a table.
DatabaseSchema::dropTable abstract public function Drop a table.
DatabaseSchema::addField abstract public function Add a new field to a table.
DatabaseSchema::dropField abstract public function Drop a field.
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::indexExists abstract public function Checks if an index exists in the given table.
DatabaseSchema::addPrimaryKey abstract public function Add a primary key.
DatabaseSchema::dropPrimaryKey abstract public function Drop the primary key.
DatabaseSchema::addUniqueKey abstract public function Add a unique key.
DatabaseSchema::dropUniqueKey abstract public function Drop a unique key.
DatabaseSchema::addIndex abstract public function Add an index.
DatabaseSchema::dropIndex abstract public function Drop an index.
DatabaseSchema::changeField abstract public function Change a field definition.
DatabaseSchema::createTable public function Create a new table from a Backdrop table definition.
DatabaseSchema::fieldNames public function Return an array of field names from an array of key/index column specifiers.
DatabaseSchema::prepareComment public function Prepare a table or column comment for database query.
DatabaseSchema::createTableSql abstract protected function Generate an array of query strings suitable for creating a table.
DatabaseSchema::$connection protected property The current database connection.
DatabaseSchema::$placeholder protected property The placeholder counter.
DatabaseSchema::$defaultSchema protected property Definition of prefixInfo array structure.
DatabaseSchema::$uniqueIdentifier protected property A unique identifier for this query object.