class Schema

PostgreSQL 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 PostgreSQL database driver has been moved to the pgsql module.

See also

https://www.drupal.org/node/3129492

1 file declares its use of Schema
PgsqlDriverLegacyTest.php in core/modules/pgsql/tests/src/Kernel/pgsql/PgsqlDriverLegacyTest.php
3 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().

File

core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php, line 17

Namespace

Drupal\Core\Database\Driver\pgsql
View source
class Schema extends PgsqlSchema {

}

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::$maxIdentifierLength protected property The maximum allowed length for index, primary key and constraint names.
Schema::$placeholder protected property The placeholder counter.
Schema::$tableInformation protected property A cache of information about blob columns and sequences of tables.
Schema::$tempNamespaceName protected property PostgreSQL's temporary namespace name.
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::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::constraintExists public function Helper function: check if a constraint (PK, FK, UK) exists.
Schema::createFieldSql protected function Creates a safe SQL string for a field for table creation or alteration.
Schema::createPrimaryKeySql protected function Create the SQL expression for primary and unique keys.
Schema::createTable public function Create a new table from a Drupal table definition.
Schema::createTableSql protected function Overrides Schema::createTableSql
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::ensureIdentifiersLength protected function Make sure to limit identifiers according to PostgreSQL compiled in length.
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::extensionExists public function Determines whether the PostgreSQL extension is created.
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::getComment public function Retrieve a table or column comment.
Schema::getFieldTypeMap public function Overrides Schema::getFieldTypeMap
Schema::getPrefixInfo protected function Get information about the table name and schema from the prefix. 1
Schema::getSequenceName protected function Retrieves a sequence name that is owned by the table and column..
Schema::getTempNamespaceName protected function Gets PostgreSQL's temporary namespace name.
Schema::hashBase64 protected function Calculates a base-64 encoded PostgreSQL-safe sha-256 hash.
Schema::indexExists public function Overrides Schema::indexExists
Schema::introspectIndexSchema protected function Overrides Schema::introspectIndexSchema
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::queryFieldInformation public function Fetches the list of constraints used on a field.
Schema::queryTableInformation public function Fetch the list of blobs and sequences used on a table.
Schema::renameTable public function Overrides Schema::renameTable
Schema::resetTableInformation protected function Resets information about table blobs, sequences and serial fields.
Schema::tableExists public function Overrides Schema::tableExists
Schema::uniqueIdentifier public function Overrides PlaceholderInterface::uniqueIdentifier
Schema::_createIndexSql protected function
Schema::_createKeys protected function
Schema::_createKeySql protected function
Schema::__clone public function Implements the magic __clone function.
Schema::__construct public function Overrides Schema::__construct

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.