Tasks::connect

protected Tasks::connect() Check if we can connect to the database. File core/lib/Drupal/Core/Database/Install/Tasks.php, line 156 Class Tasks Database installer structure. Namespace Drupal\Core\Database\Install Code protected function connect() { try { // This doesn't actually test the connection. db_set_active(); // Now actually do a check. Database::getConnection(); $this->pass('Drupal can CONNECT to the database ok.'); } catch (\Exception $e) { $thi

Tasks::checkEngineVersion

protected Tasks::checkEngineVersion() Check the engine version. Overrides Tasks::checkEngineVersion File core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php, line 153 Class Tasks Specifies installation tasks for MySQL and equivalent databases. Namespace Drupal\Core\Database\Driver\mysql\Install Code protected function checkEngineVersion() { parent::checkEngineVersion(); // Ensure that the MySQL driver supports utf8mb4 encoding. $version = Database::getConnection()->c

Tasks::checkEngineVersion

protected Tasks::checkEngineVersion() Check the engine version. File core/lib/Drupal/Core/Database/Install/Tasks.php, line 188 Class Tasks Database installer structure. Namespace Drupal\Core\Database\Install Code protected function checkEngineVersion() { // Ensure that the database server has the right version. if ($this->minimumVersion() && version_compare(Database::getConnection()->version(), $this->minimumVersion(), '<')) { $this->fail(t("The database

Tasks::checkEncoding

protected Tasks::checkEncoding() Check encoding is UTF8. File core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php, line 114 Class Tasks Specifies installation tasks for PostgreSQL databases. Namespace Drupal\Core\Database\Driver\pgsql\Install Code protected function checkEncoding() { try { if (db_query('SHOW server_encoding')->fetchField() == 'UTF8') { $this->pass(t('Database is encoded in UTF-8')); } else { $this->fail(t('The %driver databas

Tasks::$pdoDriver

The name of the PDO driver this database type requires. Type: string File core/lib/Drupal/Core/Database/Install/Tasks.php, line 19 Class Tasks Database installer structure. Namespace Drupal\Core\Database\Install Code protected $pdoDriver;

Tasks::$pdoDriver

The name of the PDO driver this database type requires. Type: string Overrides Tasks::$pdoDriver File core/lib/Drupal/Core/Database/Driver/sqlite/Install/Tasks.php, line 18 Class Tasks Specifies installation tasks for SQLite databases. Namespace Drupal\Core\Database\Driver\sqlite\Install Code protected $pdoDriver = 'sqlite';

Tasks::checkBinaryOutputSuccess

protected Tasks::checkBinaryOutputSuccess() Verify that a binary data roundtrip returns the original string. File core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php, line 180 Class Tasks Specifies installation tasks for PostgreSQL databases. Namespace Drupal\Core\Database\Driver\pgsql\Install Code protected function checkBinaryOutputSuccess() { $bytea_output = db_query("SHOW bytea_output")->fetchField(); return ($bytea_output == 'escape'); }

Tasks::$pdoDriver

The PDO driver name for MySQL and equivalent databases. Type: string Overrides Tasks::$pdoDriver File core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php, line 30 Class Tasks Specifies installation tasks for MySQL and equivalent databases. Namespace Drupal\Core\Database\Driver\mysql\Install Code protected $pdoDriver = 'mysql';

Tasks::$tasks

Structure that describes each task to run. Each value of the tasks array is an associative array defining the function to call (optional) and any arguments to be passed to the function. Type: array File core/lib/Drupal/Core/Database/Install/Tasks.php, line 29 Class Tasks Database installer structure. Namespace Drupal\Core\Database\Install Code protected $tasks = array( array( 'function' => 'checkEngineVersion', 'arguments' => array(), ), array( 'arguments' =>

Tasks::checkBinaryOutput

Tasks::checkBinaryOutput() Check Binary Output. Unserializing does not work on Postgresql 9 when bytea_output is 'hex'. File core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php, line 136 Class Tasks Specifies installation tasks for PostgreSQL databases. Namespace Drupal\Core\Database\Driver\pgsql\Install Code function checkBinaryOutput() { // PostgreSQL < 9 doesn't support bytea_output, so verify we are running // at least PostgreSQL 9. $database_connection = Database