Schema::processField

protected Schema::processField($field) Set database-engine specific properties for a field. Parameters $field: A field description array, as specified in the schema documentation. File core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php, line 320 Class Schema PostgreSQL implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\pgsql Code protected function processField($field) { if (!isset($field['size'])) { $field['size'] = 'normal'; } // Set

Schema::processField

protected Schema::processField($field) Set database-engine specific properties for a field. Parameters $field: A field description array, as specified in the schema documentation. File core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php, line 118 Class Schema SQLite implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\sqlite Code protected function processField($field) { if (!isset($field['size'])) { $field['size'] = 'normal'; } // Set th

Schema::processField

protected Schema::processField($field) Set database-engine specific properties for a field. Parameters $field: A field description array, as specified in the schema documentation. File core/lib/Drupal/Core/Database/Driver/mysql/Schema.php, line 206 Class Schema MySQL implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\mysql Code protected function processField($field) { if (!isset($field['size'])) { $field['size'] = 'normal'; } // Set the

Schema::prepareComment

public Schema::prepareComment($comment, $length = NULL) Prepare a table or column comment for database query. Parameters $comment: The comment string to prepare. $length: Optional upper limit on the returned string length. Return value The prepared comment. Overrides Schema::prepareComment File core/lib/Drupal/Core/Database/Driver/mysql/Schema.php, line 538 Class Schema MySQL implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\mysql Code public funct

Schema::prepareComment

public Schema::prepareComment($comment, $length = NULL) Prepare a table or column comment for database query. Parameters $comment: The comment string to prepare. $length: Optional upper limit on the returned string length. Return value The prepared comment. File core/lib/Drupal/Core/Database/Schema.php, line 638 Class Schema Provides a base implementation for Database Schema. Namespace Drupal\Core\Database Code public function prepareComment($comment, $length = NULL) { // Remove se

Schema::prefixNonTable

Schema::prefixNonTable($table) Create names for indexes, primary keys and constraints. This prevents using {} around non-table names like indexes and keys. File core/lib/Drupal/Core/Database/Schema.php, line 108 Class Schema Provides a base implementation for Database Schema. Namespace Drupal\Core\Database Code function prefixNonTable($table) { $args = func_get_args(); $info = $this->getPrefixInfo($table); $args[0] = $info['table']; return implode('_', $args); }

Schema::nextPlaceholder

public Schema::nextPlaceholder() Returns the next placeholder ID for the query. Return value The next available placeholder ID as an integer. Overrides PlaceholderInterface::nextPlaceholder File core/lib/Drupal/Core/Database/Schema.php, line 63 Class Schema Provides a base implementation for Database Schema. Namespace Drupal\Core\Database Code public function nextPlaceholder() { return $this->placeholder++; }

Schema::mapKeyDefinition

protected Schema::mapKeyDefinition(array $key_definition, array $mapping) Utility method: rename columns in an index definition according to a new mapping. Parameters $key_definition: The key definition. $mapping: The new mapping. File core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php, line 586 Class Schema SQLite implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\sqlite Code protected function mapKeyDefinition(array $key_definition, array $mapp

Schema::introspectSchema

protected Schema::introspectSchema($table) Find out the schema of a table. This function uses introspection methods provided by the database to create a schema array. This is useful, for example, during update when the old schema is not available. Parameters $table: Name of the table. Return value An array representing the schema, from drupal_get_schema(). Throws \Exception If a column of the table could not be parsed. File core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php, line 442

Schema::indexExists

public Schema::indexExists($table, $name) Checks if an index exists in the given table. Parameters $table: The name of the table in drupal (no prefixing). $name: The name of the index in drupal (no prefixing). Return value TRUE if the given index exists, otherwise FALSE. Overrides Schema::indexExists File core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php, line 580 Class Schema PostgreSQL implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\pgsql C