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/DrivertestMysql/Schema.php \Drupal\driver_test\Driver\Database\DrivertestMysql\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/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
- 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
- 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
- 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
SQLite implementation of \Drupal\Core\Database\Schema.
Hierarchy
- class \Drupal\Core\Database\Schema implements \Drupal\Core\Database\Query\PlaceholderInterface
- class \Drupal\sqlite\Driver\Database\sqlite\Schema extends \Drupal\Core\Database\Schema
- class \Drupal\Core\Database\Driver\sqlite\Schema extends \Drupal\sqlite\Driver\Database\sqlite\Schema
- class \Drupal\sqlite\Driver\Database\sqlite\Schema extends \Drupal\Core\Database\Schema
Expanded class hierarchy of Schema
Deprecated
in drupal:9.4.0 and is removed from drupal:11.0.0. The SQLite database driver has been moved to the sqlite module.
See also
https://www.drupal.org/node/3129492
1 file declares its use of Schema
- SqliteDriverLegacyTest.php in core/
modules/ sqlite/ tests/ src/ Kernel/ sqlite/ SqliteDriverLegacyTest.php
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/
lib/ Drupal/ Core/ Database/ Driver/ sqlite/ Schema.php, line 17
Namespace
Drupal\Core\Database\Driver\sqliteView source
class Schema extends SqliteSchema {
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
Schema::$connection | protected | property | The database connection. |
Schema::$connection | protected | property | The database connection. |
Schema::$defaultSchema | protected | property | Override DatabaseSchema::$defaultSchema. |
Schema::$defaultSchema | protected | property | Override DatabaseSchema::$defaultSchema. |
Schema::$placeholder | protected | property | The placeholder counter. |
Schema::$placeholder | protected | property | The placeholder counter. |
Schema::$uniqueIdentifier | protected | property | A unique identifier for this query object. |
Schema::$uniqueIdentifier | protected | property | A unique identifier for this query object. |
Schema::addField | public | function | |
Schema::addField | public | function | |
Schema::addIndex | public | function | |
Schema::addIndex | public | function | |
Schema::addPrimaryKey | public | function | |
Schema::addPrimaryKey | public | function | |
Schema::addUniqueKey | public | function | |
Schema::addUniqueKey | public | function | |
Schema::alterTable | protected | function | Create a table with a new schema containing the old content. |
Schema::alterTable | protected | function | Create a table with a new schema containing the old content. |
Schema::buildTableNameCondition | protected | function | Build a condition to match a table name against a standard information_schema. |
Schema::buildTableNameCondition | protected | function | Build a condition to match a table name against a standard information_schema. |
Schema::changeField | public | function | |
Schema::changeField | public | function | |
Schema::createColumnsSql | protected | function | Build the SQL expression for creating columns. |
Schema::createFieldSql | protected | function | Create an SQL string for a field to be used in table creation or alteration. |
Schema::createFieldSql | protected | function | Create an SQL string for a field to be used in table creation or alteration. |
Schema::createIndexSql | protected | function | Build the SQL expression for indexes. |
Schema::createKeySql | protected | function | Build the SQL expression for keys. |
Schema::createTable | public | function | Create a new table from a Drupal table definition. |
Schema::createTable | public | function | Create a new table from a Drupal table definition. |
Schema::createTableSql | public | function | Generate SQL to create a new table from a Drupal schema definition. |
Schema::dropField | public | function | |
Schema::dropField | public | function | |
Schema::dropIndex | public | function | |
Schema::dropIndex | public | function | |
Schema::dropPrimaryKey | public | function | |
Schema::dropPrimaryKey | public | function | |
Schema::dropTable | public | function | |
Schema::dropTable | public | function | |
Schema::dropUniqueKey | public | function | |
Schema::dropUniqueKey | public | function | |
Schema::ensureNotNullPrimaryKey | protected | function | Ensures that all the primary key fields are correctly defined. |
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::escapeDefaultValue | protected | function | Escapes a value to be used as the default value on a column. |
Schema::fieldExists | public | function | |
Schema::fieldNames | public | function | Return an array of field names from an array of key/index column specifiers. |
Schema::fieldNames | public | function | Return an array of field names from an array of key/index column specifiers. |
Schema::findPrimaryKeyColumns | protected | function | |
Schema::findPrimaryKeyColumns | protected | function | |
Schema::findTables | public | function | |
Schema::findTables | public | function | |
Schema::getFieldTypeMap | public | function | |
Schema::getFieldTypeMap | public | function | |
Schema::getPrefixInfo | protected | function | Get information about the table name and schema from the prefix. |
Schema::getPrefixInfo | protected | function | Get information about the table name and schema from the prefix. |
Schema::indexExists | public | function | |
Schema::indexExists | public | function | |
Schema::introspectIndexSchema | protected | function | |
Schema::introspectIndexSchema | protected | function | |
Schema::introspectSchema | protected | function | Find out the schema of a table. |
Schema::introspectSchema | protected | function | Find out the schema of a table. |
Schema::mapKeyDefinition | protected | function | Utility method: rename columns in an index definition according to a new mapping. |
Schema::mapKeyDefinition | protected | function | Utility method: rename columns in an index definition according to a new mapping. |
Schema::nextPlaceholder | public | function | |
Schema::nextPlaceholder | public | function | |
Schema::prefixNonTable | public | function | Create names for indexes, primary keys and constraints. |
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. |
Schema::prepareComment | public | function | Prepare a table or column comment for database query. |
Schema::processField | protected | function | Set database-engine specific properties for a field. |
Schema::processField | protected | function | Set database-engine specific properties for a field. |
Schema::renameTable | public | function | |
Schema::renameTable | public | function | |
Schema::tableExists | public | function | |
Schema::uniqueIdentifier | public | function | |
Schema::uniqueIdentifier | public | function | |
Schema::__clone | public | function | Implements the magic __clone function. |
Schema::__clone | public | function | Implements the magic __clone function. |
Schema::__construct | public | function | |
Schema::__construct | public | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.