class Schema in Drupal 8
Same name in this branch
- 8 core/lib/Drupal/Core/Database/Schema.php \Drupal\Core\Database\Schema
- 8 core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php \Drupal\Core\Database\Driver\sqlite\Schema
- 8 core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php \Drupal\Core\Database\Driver\pgsql\Schema
- 8 core/lib/Drupal/Core/Database/Driver/mysql/Schema.php \Drupal\Core\Database\Driver\mysql\Schema
- 8 core/tests/Drupal/Tests/Core/Database/Stub/Driver/Schema.php \Drupal\Tests\Core\Database\Stub\Driver\Schema
- 8 core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestMysql/Schema.php \Drupal\driver_test\Driver\Database\DrivertestMysql\Schema
- 8 core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestPgsql/Schema.php \Drupal\driver_test\Driver\Database\DrivertestPgsql\Schema
Same name and namespace in other branches
- 9 core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestPgsql/Schema.php \Drupal\driver_test\Driver\Database\DrivertestPgsql\Schema
- 10 core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestPgsql/Schema.php \Drupal\driver_test\Driver\Database\DrivertestPgsql\Schema
PostgreSQL implementation of \Drupal\Core\Database\Schema.
Hierarchy
- class \Drupal\Core\Database\Schema implements PlaceholderInterface
Expanded class hierarchy of Schema
3 string references to 'Schema'
- Connection::schema in core/
lib/ Drupal/ Core/ Database/ Connection.php - Returns a DatabaseSchema object for manipulating the schema.
- Connection::__construct in core/
modules/ system/ tests/ modules/ driver_test/ src/ Driver/ Database/ DrivertestMysqlDeprecatedVersion/ Connection.php - Constructs a Connection object.
- ConnectionTest::providerGetDriverClass in core/
tests/ Drupal/ Tests/ Core/ Database/ ConnectionTest.php - Dataprovider for testGetDriverClass().
File
- core/
modules/ system/ tests/ modules/ driver_test/ src/ Driver/ Database/ DrivertestPgsql/ Schema.php, line 10
Namespace
Drupal\driver_test\Driver\Database\DrivertestPgsqlView source
class Schema extends CoreSchema {
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Schema:: |
protected | property | The database connection. | |
Schema:: |
protected | property | Definition of prefixInfo array structure. | 1 |
Schema:: |
protected | property | The maximum allowed length for index, primary key and constraint names. | |
Schema:: |
protected | property | The placeholder counter. | |
Schema:: |
protected | property | A cache of information about blob columns and sequences of tables. | |
Schema:: |
protected | property | PostgreSQL's temporary namespace name. | |
Schema:: |
protected | property | A unique identifier for this query object. | |
Schema:: |
public | function |
Add a new field to a table. Overrides Schema:: |
|
Schema:: |
public | function |
Add an index. Overrides Schema:: |
|
Schema:: |
public | function |
Add a primary key. Overrides Schema:: |
|
Schema:: |
public | function |
Add a unique key. Overrides Schema:: |
|
Schema:: |
protected | function | Build a condition to match a table name against a standard information_schema. | 1 |
Schema:: |
public | function |
Change a field definition. Overrides Schema:: |
|
Schema:: |
public | function | Helper function: check if a constraint (PK, FK, UK) exists. | |
Schema:: |
protected | function | Create an SQL string for a field to be used in table creation or alteration. | |
Schema:: |
protected | function | Create the SQL expression for primary keys. | |
Schema:: |
public | function | Create a new table from a Drupal table definition. | |
Schema:: |
protected | function | Generate SQL to create a new table from a Drupal schema definition. | |
Schema:: |
public | function |
Drop a field. Overrides Schema:: |
|
Schema:: |
public | function |
Drop an index. Overrides Schema:: |
|
Schema:: |
public | function |
Drop the primary key. Overrides Schema:: |
|
Schema:: |
public | function |
Drop a table. Overrides Schema:: |
|
Schema:: |
public | function |
Drop a unique key. Overrides Schema:: |
|
Schema:: |
protected | function | Make sure to limit identifiers according to PostgreSQL compiled in length. | |
Schema:: |
protected | function | Ensures that all the primary key fields are correctly defined. | |
Schema:: |
protected | function | Return an escaped version of its parameter to be used as a default value on a column. | |
Schema:: |
public | function |
Check if a column exists in the given table. Overrides Schema:: |
|
Schema:: |
public | function | Return an array of field names from an array of key/index column specifiers. | |
Schema:: |
public | function |
Set the default value for a field. Overrides Schema:: |
|
Schema:: |
public | function |
Set a field to have no default value. Overrides Schema:: |
|
Schema:: |
protected | function |
Finds the primary key columns of a table, from the database. Overrides Schema:: |
|
Schema:: |
public | function |
Finds all tables that are like the specified base table name. Overrides Schema:: |
|
Schema:: |
public | function | Retrieve a table or column comment. | |
Schema:: |
public | function |
Returns a mapping of Drupal schema field names to DB-native field types. Overrides Schema:: |
|
Schema:: |
protected | function | Get information about the table name and schema from the prefix. | 1 |
Schema:: |
protected | function | Gets PostgreSQL's temporary namespace name. | |
Schema:: |
protected | function | Calculates a base-64 encoded, PostgreSQL-safe sha-256 hash per PostgreSQL documentation: 4.1. Lexical Structure. | |
Schema:: |
public | function |
Checks if an index exists in the given table. Overrides Schema:: |
|
Schema:: |
protected | function |
Finds the columns for the primary key, unique keys and indexes of a table. Overrides Schema:: |
|
Schema:: |
public | function |
Returns the next placeholder ID for the query. Overrides PlaceholderInterface:: |
|
Schema:: |
public | function | Create names for indexes, primary keys and constraints. | |
Schema:: |
public | function | Prepare a table or column comment for database query. | 1 |
Schema:: |
protected | function | Set database-engine specific properties for a field. | |
Schema:: |
public | function | Fetches the list of constraints used on a field. | |
Schema:: |
public | function | Fetch the list of blobs and sequences used on a table. | |
Schema:: |
public | function |
Rename a table. Overrides Schema:: |
|
Schema:: |
protected | function | Resets information about table blobs, sequences and serial fields. | |
Schema:: |
public | function |
Check if a table exists. Overrides Schema:: |
|
Schema:: |
public | function |
Returns a unique identifier for this object. Overrides PlaceholderInterface:: |
|
Schema:: |
protected | function | ||
Schema:: |
protected | function | ||
Schema:: |
protected | function | ||
Schema:: |
public | function | Implements the magic __clone function. | |
Schema:: |
public | function |