Base class for database schema definitions.
Hierarchy
- class DatabaseSchema implements QueryPlaceholderInterface
Expanded class hierarchy of DatabaseSchema
Related topics
File
- core/
includes/ database/ schema.inc, line 161 - Generic Database schema code.
Members
Name | Modifiers | Type | Description |
---|---|---|---|
DatabaseSchema:: |
protected | property | The current database connection. |
DatabaseSchema:: |
protected | property | Definition of prefixInfo array structure. |
DatabaseSchema:: |
protected | property | The placeholder counter. |
DatabaseSchema:: |
protected | property | A unique identifier for this query object. |
DatabaseSchema:: |
abstract public | function | Add a new field to a table. |
DatabaseSchema:: |
abstract public | function | Add an index. |
DatabaseSchema:: |
abstract public | function | Add a primary key. |
DatabaseSchema:: |
abstract public | function | Add a unique key. |
DatabaseSchema:: |
protected | function | Build a condition to match a table name against a standard information_schema. |
DatabaseSchema:: |
abstract public | function | Change a field definition. |
DatabaseSchema:: |
public | function | Create a new table from a Backdrop table definition. |
DatabaseSchema:: |
abstract protected | function | Generate an array of query strings suitable for creating a table. |
DatabaseSchema:: |
abstract public | function | Drop a field. |
DatabaseSchema:: |
abstract public | function | Drop an index. |
DatabaseSchema:: |
abstract public | function | Drop the primary key. |
DatabaseSchema:: |
abstract public | function | Drop a table. |
DatabaseSchema:: |
abstract public | function | Drop a unique key. |
DatabaseSchema:: |
public | function | Check if a column exists in the given table. |
DatabaseSchema:: |
public | function | Return an array of field names from an array of key/index column specifiers. |
DatabaseSchema:: |
abstract public | function | Set the default value for a field. |
DatabaseSchema:: |
abstract public | function | Set a field to have no default value. |
DatabaseSchema:: |
public | function | Find all tables that are like the specified base table name. |
DatabaseSchema:: |
abstract public | function | Returns a mapping of Backdrop schema field names to DB-native field types. |
DatabaseSchema:: |
protected | function | Get information about the table name and schema from the prefix. |
DatabaseSchema:: |
abstract public | function | Checks if an index exists in the given table. |
DatabaseSchema:: |
public | function |
Implements QueryPlaceHolderInterface::nextPlaceholder(). Overrides QueryPlaceholderInterface:: |
DatabaseSchema:: |
public | function | Create names for indexes, primary keys and constraints. |
DatabaseSchema:: |
public | function | Prepare a table or column comment for database query. |
DatabaseSchema:: |
abstract public | function | Rename a table. |
DatabaseSchema:: |
public | function | Check if a table exists. |
DatabaseSchema:: |
public | function |
Implements QueryPlaceHolderInterface::uniqueIdentifier(). Overrides QueryPlaceholderInterface:: |
DatabaseSchema:: |
public | function | Implements the magic __clone function. |
DatabaseSchema:: |
public | function |