class Schema
Same name in this branch
- 9 core/modules/sqlite/src/Driver/Database/sqlite/Schema.php \Drupal\sqlite\Driver\Database\sqlite\Schema
- 9 core/modules/mysql/src/Driver/Database/mysql/Schema.php \Drupal\mysql\Driver\Database\mysql\Schema
- 9 core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestMysqlDeprecatedVersion/Schema.php \Drupal\driver_test\Driver\Database\DrivertestMysqlDeprecatedVersion\Schema
- 9 core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestPgsql/Schema.php \Drupal\driver_test\Driver\Database\DrivertestPgsql\Schema
- 9 core/modules/pgsql/src/Driver/Database/pgsql/Schema.php \Drupal\pgsql\Driver\Database\pgsql\Schema
- 9 core/tests/Drupal/Tests/Core/Database/Stub/Driver/Schema.php \Drupal\Tests\Core\Database\Stub\Driver\Schema
- 9 core/tests/fixtures/database_drivers/module/corefake/src/Driver/Database/corefakeWithAllCustomClasses/Schema.php \Drupal\corefake\Driver\Database\corefakeWithAllCustomClasses\Schema
- 9 core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php \Drupal\Core\Database\Driver\sqlite\Schema
- 9 core/lib/Drupal/Core/Database/Driver/mysql/Schema.php \Drupal\Core\Database\Driver\mysql\Schema
- 9 core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php \Drupal\Core\Database\Driver\pgsql\Schema
- 9 core/lib/Drupal/Core/Database/Schema.php \Drupal\Core\Database\Schema
Same name and namespace in other branches
- 8.9.x core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestMysql/Schema.php \Drupal\driver_test\Driver\Database\DrivertestMysql\Schema
- 8.9.x core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestPgsql/Schema.php \Drupal\driver_test\Driver\Database\DrivertestPgsql\Schema
- 8.9.x core/tests/Drupal/Tests/Core/Database/Stub/Driver/Schema.php \Drupal\Tests\Core\Database\Stub\Driver\Schema
- 8.9.x core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php \Drupal\Core\Database\Driver\sqlite\Schema
- 8.9.x core/lib/Drupal/Core/Database/Driver/mysql/Schema.php \Drupal\Core\Database\Driver\mysql\Schema
- 8.9.x core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php \Drupal\Core\Database\Driver\pgsql\Schema
- 8.9.x core/lib/Drupal/Core/Database/Schema.php \Drupal\Core\Database\Schema
- 10 core/modules/sqlite/src/Driver/Database/sqlite/Schema.php \Drupal\sqlite\Driver\Database\sqlite\Schema
- 10 core/modules/mysql/src/Driver/Database/mysql/Schema.php \Drupal\mysql\Driver\Database\mysql\Schema
- 10 core/modules/pgsql/src/Driver/Database/pgsql/Schema.php \Drupal\pgsql\Driver\Database\pgsql\Schema
- 10 core/tests/Drupal/Tests/Core/Database/Stub/Driver/Schema.php \Drupal\Tests\Core\Database\Stub\Driver\Schema
- 10 core/tests/fixtures/database_drivers/module/core_fake/src/Driver/Database/CoreFakeWithAllCustomClasses/Schema.php \Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses\Schema
- 10 core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php \Drupal\Core\Database\Driver\sqlite\Schema
- 10 core/lib/Drupal/Core/Database/Driver/mysql/Schema.php \Drupal\Core\Database\Driver\mysql\Schema
- 10 core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php \Drupal\Core\Database\Driver\pgsql\Schema
- 10 core/lib/Drupal/Core/Database/Schema.php \Drupal\Core\Database\Schema
- 11.x core/modules/sqlite/src/Driver/Database/sqlite/Schema.php \Drupal\sqlite\Driver\Database\sqlite\Schema
- 11.x core/modules/mysql/src/Driver/Database/mysql/Schema.php \Drupal\mysql\Driver\Database\mysql\Schema
- 11.x core/modules/pgsql/src/Driver/Database/pgsql/Schema.php \Drupal\pgsql\Driver\Database\pgsql\Schema
- 11.x core/tests/Drupal/Tests/Core/Database/Stub/Driver/Schema.php \Drupal\Tests\Core\Database\Stub\Driver\Schema
- 11.x core/tests/fixtures/database_drivers/module/core_fake/src/Driver/Database/CoreFakeWithAllCustomClasses/Schema.php \Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses\Schema
- 11.x core/lib/Drupal/Core/Database/Schema.php \Drupal\Core\Database\Schema
MySQL test implementation of \Drupal\Core\Database\Schema.
Hierarchy
- class \Drupal\Core\Database\Schema extends \Drupal\Core\Database\Query\PlaceholderInterface
- class \Drupal\mysql\Driver\Database\mysql\Schema implements \Drupal\Core\Database\Schema
- class \Drupal\driver_test\Driver\Database\DrivertestMysql\Schema implements \Drupal\mysql\Driver\Database\mysql\Schema
- class \Drupal\mysql\Driver\Database\mysql\Schema implements \Drupal\Core\Database\Schema
Expanded class hierarchy of Schema
4 string references to 'Schema'
- Connection::getDriverClass in core/
lib/ Drupal/ Core/ Database/ Connection.php - Gets the driver-specific override class if any for the specified class.
- Connection::schema in core/
lib/ Drupal/ Core/ Database/ Connection.php - Returns a DatabaseSchema object for manipulating the schema.
- ConnectionTest::providerGetDriverClass in core/
tests/ Drupal/ Tests/ Core/ Database/ ConnectionTest.php - Data provider for testGetDriverClass().
- ConnectionTest::testDestroy in core/
tests/ Drupal/ Tests/ Core/ Database/ ConnectionTest.php - Tests Connection::destroy().
File
-
core/
modules/ system/ tests/ modules/ driver_test/ src/ Driver/ Database/ DrivertestMysql/ Schema.php, line 12
Namespace
Drupal\driver_test\Driver\Database\DrivertestMysqlView source
class Schema extends CoreSchema {
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
Schema::$connection | protected | property | The database connection. | ||
Schema::$defaultSchema | protected | property | Definition of prefixInfo array structure. | 1 | |
Schema::$mysqlStringTypes | protected | property | List of MySQL string types. | ||
Schema::$placeholder | protected | property | The placeholder counter. | ||
Schema::$uniqueIdentifier | protected | property | A unique identifier for this query object. | ||
Schema::addField | public | function | Add a new field to a table. | Overrides Schema::addField | |
Schema::addIndex | public | function | Add an index. | Overrides Schema::addIndex | |
Schema::addPrimaryKey | public | function | Add a primary key. | Overrides Schema::addPrimaryKey | |
Schema::addUniqueKey | public | function | Add a unique key. | Overrides Schema::addUniqueKey | |
Schema::buildTableNameCondition | protected | function | Build a condition to match a table name against a standard information_schema. | Overrides Schema::buildTableNameCondition | |
Schema::changeField | public | function | Change a field definition. | Overrides Schema::changeField | |
Schema::COMMENT_MAX_COLUMN | constant | Maximum length of a column comment in MySQL. | |||
Schema::COMMENT_MAX_TABLE | constant | Maximum length of a table comment in MySQL. | |||
Schema::createFieldSql | protected | function | Create an SQL string for a field to be used in table creation or alteration. | ||
Schema::createKeySql | protected | function | |||
Schema::createKeysSql | protected | function | |||
Schema::createTable | public | function | Create a new table from a Drupal table definition. | ||
Schema::createTableSql | protected | function | Generate SQL to create a new table from a Drupal schema definition. | ||
Schema::dropField | public | function | Drop a field. | Overrides Schema::dropField | |
Schema::dropIndex | public | function | Drop an index. | Overrides Schema::dropIndex | |
Schema::dropPrimaryKey | public | function | Drop the primary key. | Overrides Schema::dropPrimaryKey | |
Schema::dropTable | public | function | Drop a table. | Overrides Schema::dropTable | |
Schema::dropUniqueKey | public | function | Drop a unique key. | Overrides Schema::dropUniqueKey | |
Schema::ensureNotNullPrimaryKey | protected | function | Ensures that all the primary key fields are correctly defined. | ||
Schema::escapeDefaultValue | protected | function | Escapes a value to be used as the default value on a column. | ||
Schema::fieldExists | public | function | Check if a column exists in the given table. | 2 | |
Schema::fieldNames | public | function | Return an array of field names from an array of key/index column specifiers. | ||
Schema::findPrimaryKeyColumns | protected | function | Finds the primary key columns of a table, from the database. | Overrides Schema::findPrimaryKeyColumns | |
Schema::findTables | public | function | Finds all tables that are like the specified base table name. | 2 | |
Schema::getComment | public | function | Retrieve a table or column comment. | ||
Schema::getFieldTypeMap | public | function | Returns a mapping of Drupal schema field names to DB-native field types. | Overrides Schema::getFieldTypeMap | |
Schema::getNormalizedIndexes | protected | function | Gets normalized indexes from a table specification. | ||
Schema::getPrefixInfo | protected | function | Get information about the table and database name from the prefix. | Overrides Schema::getPrefixInfo | |
Schema::indexExists | public | function | Checks if an index exists in the given table. | Overrides Schema::indexExists | |
Schema::introspectIndexSchema | protected | function | Finds the columns for the primary key, unique keys and indexes of a table. | Overrides Schema::introspectIndexSchema | |
Schema::nextPlaceholder | public | function | Returns the next placeholder ID for the query. | Overrides PlaceholderInterface::nextPlaceholder | |
Schema::prefixNonTable | public | function | Create names for indexes, primary keys and constraints. | ||
Schema::prepareComment | public | function | Prepare a table or column comment for database query. | Overrides Schema::prepareComment | |
Schema::processField | protected | function | Set database-engine specific properties for a field. | ||
Schema::renameTable | public | function | Rename a table. | Overrides Schema::renameTable | |
Schema::shortenIndex | protected | function | Helper function for normalizeIndexes(). | ||
Schema::tableExists | public | function | Check if a table exists. | 2 | |
Schema::uniqueIdentifier | public | function | Returns a unique identifier for this object. | Overrides PlaceholderInterface::uniqueIdentifier | |
Schema::__clone | public | function | Implements the magic __clone function. | ||
Schema::__construct | public | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.