class Schema

SQLite implementation of \Drupal\Core\Database\Schema.

Hierarchy

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\sqlite
View source
class Schema extends SqliteSchema {

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
Schema::$connection protected property The database connection.
Schema::$defaultSchema protected property Override DatabaseSchema::$defaultSchema. Overrides Schema::$defaultSchema
Schema::$placeholder protected property The placeholder counter.
Schema::$uniqueIdentifier protected property A unique identifier for this query object.
Schema::addField public function Overrides Schema::addField
Schema::addIndex public function Overrides Schema::addIndex
Schema::addPrimaryKey public function Overrides Schema::addPrimaryKey
Schema::addUniqueKey public function Overrides Schema::addUniqueKey
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. 1
Schema::changeField public function Overrides Schema::changeField
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::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::createTableSql public function Generate SQL to create a new table from a Drupal schema definition.
Schema::dropField public function Overrides Schema::dropField
Schema::dropIndex public function Overrides Schema::dropIndex
Schema::dropPrimaryKey public function Overrides Schema::dropPrimaryKey
Schema::dropTable public function Overrides Schema::dropTable
Schema::dropUniqueKey public function 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 Overrides Schema::fieldExists
Schema::fieldNames public function Return an array of field names from an array of key/index column specifiers.
Schema::findPrimaryKeyColumns protected function Overrides Schema::findPrimaryKeyColumns
Schema::findTables public function Overrides Schema::findTables
Schema::getFieldTypeMap public function Overrides Schema::getFieldTypeMap
Schema::getPrefixInfo protected function Get information about the table name and schema from the prefix. 1
Schema::indexExists public function Overrides Schema::indexExists
Schema::introspectIndexSchema protected function Overrides Schema::introspectIndexSchema
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::nextPlaceholder public function 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. 1
Schema::processField protected function Set database-engine specific properties for a field.
Schema::renameTable public function Overrides Schema::renameTable
Schema::tableExists public function Overrides Schema::tableExists
Schema::uniqueIdentifier public function 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.