Move database files to the new lib directory and update code accordingly.

8.0.x
Larry Garfield 2012-01-22 22:47:08 -06:00
parent 86c93f3b74
commit 92286713d5
93 changed files with 222 additions and 206 deletions

View File

@ -1,7 +0,0 @@
<?php
namespace Drupal\Database\Driver\mysql;
use Drupal\Database\Query\Delete as QueryDelete;
class Delete extends QueryDelete { }

View File

@ -1,7 +0,0 @@
<?php
namespace Drupal\Database\Driver\mysql;
use Drupal\Database\Query\Merge as QueryMerge;
class Merge extends QueryMerge { }

View File

@ -1,7 +0,0 @@
<?php
namespace Drupal\Database\Driver\mysql;
use Drupal\Database\Query\Select as QuerySelect;
class Select extends QuerySelect { }

View File

@ -1,7 +0,0 @@
<?php
namespace Drupal\Database\Driver\mysql;
use Drupal\Database\Transaction as DatabaseTransaction;
class Transaction extends DatabaseTransaction { }

View File

@ -1,7 +0,0 @@
<?php
namespace Drupal\Database\Driver\mysql;
use Drupal\Database\Query\Update as QueryUpdate;
class Update extends QueryUpdate { }

View File

@ -1,7 +0,0 @@
<?php
namespace Drupal\Database\Driver\sqlite;
use Drupal\Database\Query\Merge as QueryMerge;
class Merge extends QueryMerge { }

View File

@ -1,7 +0,0 @@
<?php
namespace Drupal\Database\Driver\sqlite;
use Drupal\Database\Transaction as DatabaseTransaction;
class Transaction extends DatabaseTransaction { }

View File

@ -1,6 +1,6 @@
<?php
use Drupal\Database\Database;
use Drupal\Core\Database\Database;
use Symfony\Component\ClassLoader\UniversalClassLoader;
use Symfony\Component\ClassLoader\ApcUniversalClassLoader;

View File

@ -1,6 +1,6 @@
<?php
use Drupal\Database\Database;
use Drupal\Core\Database\Database;
/**
* @file

View File

@ -1,7 +1,7 @@
<?php
use Drupal\Database\Database;
use Drupal\Database\Query\Condition;
use Drupal\Core\Database\Database;
use Drupal\Core\Database\Query\Condition;
/**
* @file

View File

@ -1,7 +1,7 @@
<?php
use Drupal\Database\Database;
use Drupal\Database\Install\TaskException;
use Drupal\Core\Database\Database;
use Drupal\Core\Database\Install\TaskException;
/**
* @file
@ -234,7 +234,23 @@ function install_begin_request(&$install_state) {
// Ensure that the class loader is available so that we can leverage classes
// as part of the install routine.
drupal_initialize_classloader();
$loader = drupal_classloader();
// Register explicit vendor namespaces.
$loader->registerNamespaces(array(
// All Symfony-borrowed code lives in /core/includes/Symfony.
'Symfony' => DRUPAL_ROOT . '/core/vendor',
));
// Register the Drupal namespace for classes in core as a fallback.
// This allows to register additional namespaces within the Drupal namespace
// (e.g., for modules) and avoids an additional file_exists() on the Drupal
// core namespace, since the class loader can already determine the best
// namespace match based on a string comparison. It further allows modules to
// register/overload namespaces in Drupal core.
$loader->registerNamespaceFallbacks(array(
// All Drupal-namespaced code in core lives in /core/includes/Drupal.
'Drupal' => DRUPAL_ROOT . '/core/lib',
));
if (!$install_state['interactive']) {
drupal_override_server_variables($install_state['server']);

View File

@ -1,6 +1,6 @@
<?php
use Drupal\Database\Database;
use Drupal\Core\Database\Database;
/**
* Indicates that a module has not been installed yet.
@ -256,7 +256,7 @@ function drupal_get_database_types() {
// Because we have no registry yet, we need to also include the install.inc
// file for the driver explicitly.
require_once DRUPAL_ROOT . '/core/includes/database/database.inc';
foreach (file_scan_directory(DRUPAL_ROOT . '/core/includes/Drupal/Database/Driver', '/^[a-z]*$/i', array('recurse' => FALSE)) as $file) {
foreach (file_scan_directory(DRUPAL_ROOT . '/core/lib/Drupal/Core/Database/Driver', '/^[a-z]*$/i', array('recurse' => FALSE)) as $file) {
if (file_exists($file->uri . '/Install/Tasks.php')) {
$drivers[$file->filename] = $file->uri;
}
@ -1006,6 +1006,6 @@ function db_run_tasks($driver) {
function db_installer_object($driver) {
// We cannot use Database::getConnection->getDriverClass() here, because
// the connection object is not yet functional.
$task_class = "Drupal\\Database\\Driver\\{$driver}\\Install\\Tasks";
$task_class = "Drupal\\Core\\Database\\Driver\\{$driver}\\Install\\Tasks";
return new $task_class();
}

View File

@ -1,8 +1,8 @@
<?php
use Drupal\Database\Connection;
use Drupal\Database\Query\SelectExtender;
use Drupal\Database\Query\SelectInterface;
use Drupal\Core\Database\Connection;
use Drupal\Core\Database\Query\SelectExtender;
use Drupal\Core\Database\Query\SelectInterface;
/**
* @file

View File

@ -1,6 +1,6 @@
<?php
use Drupal\Database\Database;
use Drupal\Core\Database\Database;
/**
* @file

View File

@ -1,8 +1,8 @@
<?php
use Drupal\Database\Connection;
use Drupal\Database\Query\SelectExtender;
use Drupal\Database\Query\SelectInterface;
use Drupal\Core\Database\Connection;
use Drupal\Core\Database\Query\SelectExtender;
use Drupal\Core\Database\Query\SelectInterface;
/**
* @file

View File

@ -1,9 +1,9 @@
<?php
namespace Drupal\Database;
namespace Drupal\Core\Database;
use Drupal\Database\DatabaseTransactionNoActiveException;
use Drupal\Database\DatabaseTransactionOutOfOrderException;
use Drupal\Core\Database\DatabaseTransactionNoActiveException;
use Drupal\Core\Database\DatabaseTransactionOutOfOrderException;
use PDO;
use PDOException;
@ -70,7 +70,7 @@ abstract class Connection extends PDO {
*
* @var string
*/
protected $statementClass = '\\Drupal\\Database\\StatementBase';
protected $statementClass = '\\Drupal\\Core\\Database\\StatementBase';
/**
* Whether this database connection supports transactions.
@ -593,7 +593,7 @@ abstract class Connection extends PDO {
public function getDriverClass($class) {
if (empty($this->driverClasses[$class])) {
$driver = $this->driver();
$driver_class = "Drupal\\Database\\Driver\\{$driver}\\{$class}";
$driver_class = "Drupal\\Core\\Database\\Driver\\{$driver}\\{$class}";
$this->driverClasses[$class] = class_exists($driver_class) ? $driver_class : $class;
}
return $this->driverClasses[$class];

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\Database;
namespace Drupal\Core\Database;
use RuntimeException;

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\Database;
namespace Drupal\Core\Database;
/**
* Primary front-controller for the database system.
@ -371,7 +371,7 @@ abstract class Database {
// We cannot rely on the registry yet, because the registry requires an
// open database connection.
$driver_class = "Drupal\\Database\\Driver\\{$driver}\\Connection";
$driver_class = "Drupal\\Core\\Database\\Driver\\{$driver}\\Connection";
$new_connection = new $driver_class(self::$databaseInfo[$key][$target]);
$new_connection->setTarget($target);
$new_connection->setKey($key);

View File

@ -1,10 +1,10 @@
<?php
namespace Drupal\Database\Driver\mysql;
namespace Drupal\Core\Database\Driver\mysql;
use Drupal\Database\Database;
use Drupal\Database\DatabaseTransactionCommitFailedException;
use Drupal\Database\Connection as DatabaseConnection;
use Drupal\Core\Database\Database;
use Drupal\Core\Database\DatabaseTransactionCommitFailedException;
use Drupal\Core\Database\Connection as DatabaseConnection;
use PDO;
use PDOException;

View File

@ -0,0 +1,7 @@
<?php
namespace Drupal\Core\Database\Driver\mysql;
use Drupal\Core\Database\Query\Delete as QueryDelete;
class Delete extends QueryDelete { }

View File

@ -1,8 +1,8 @@
<?php
namespace Drupal\Database\Driver\mysql;
namespace Drupal\Core\Database\Driver\mysql;
use Drupal\Database\Query\Insert as QueryInsert;
use Drupal\Core\Database\Query\Insert as QueryInsert;
class Insert extends QueryInsert {

View File

@ -1,8 +1,8 @@
<?php
namespace Drupal\Database\Driver\mysql\Install;
namespace Drupal\Core\Database\Driver\mysql\Install;
use Drupal\Database\Install\Tasks as InstallTasks;
use Drupal\Core\Database\Install\Tasks as InstallTasks;
/**
* Specifies installation tasks for MySQL and equivalent databases.

View File

@ -0,0 +1,7 @@
<?php
namespace Drupal\Core\Database\Driver\mysql;
use Drupal\Core\Database\Query\Merge as QueryMerge;
class Merge extends QueryMerge { }

View File

@ -1,12 +1,12 @@
<?php
namespace Drupal\Database\Driver\mysql;
namespace Drupal\Core\Database\Driver\mysql;
use Drupal\Database\Database;
use Drupal\Database\Query\Condition;
use Drupal\Database\SchemaObjectExistsException;
use Drupal\Database\SchemaObjectDoesNotExistException;
use Drupal\Database\Schema as DatabaseSchema;
use Drupal\Core\Database\Database;
use Drupal\Core\Database\Query\Condition;
use Drupal\Core\Database\SchemaObjectExistsException;
use Drupal\Core\Database\SchemaObjectDoesNotExistException;
use Drupal\Core\Database\Schema as DatabaseSchema;
use Exception;

View File

@ -0,0 +1,7 @@
<?php
namespace Drupal\Core\Database\Driver\mysql;
use Drupal\Core\Database\Query\Select as QuerySelect;
class Select extends QuerySelect { }

View File

@ -0,0 +1,7 @@
<?php
namespace Drupal\Core\Database\Driver\mysql;
use Drupal\Core\Database\Transaction as DatabaseTransaction;
class Transaction extends DatabaseTransaction { }

View File

@ -1,8 +1,8 @@
<?php
namespace Drupal\Database\Driver\mysql;
namespace Drupal\Core\Database\Driver\mysql;
use Drupal\Database\Query\Truncate as QueryTruncate;
use Drupal\Core\Database\Query\Truncate as QueryTruncate;
class Truncate extends QueryTruncate {
public function __toString() {

View File

@ -0,0 +1,7 @@
<?php
namespace Drupal\Core\Database\Driver\mysql;
use Drupal\Core\Database\Query\Update as QueryUpdate;
class Update extends QueryUpdate { }

View File

@ -1,8 +1,8 @@
<?php
namespace Drupal\Database\Driver\pgsql\Install;
namespace Drupal\Core\Database\Driver\pgsql\Install;
use Drupal\Database\Install\Tasks as InstallTasks;
use Drupal\Core\Database\Install\Tasks as InstallTasks;
/**
* PostgreSQL specific install functions

View File

@ -1,13 +1,13 @@
<?php
namespace Drupal\Database\Driver\sqlite;
namespace Drupal\Core\Database\Driver\sqlite;
use Drupal\Database\Database;
use Drupal\Database\TransactionNoActiveException;
use Drupal\Database\TransactionNameNonUniqueException;
use Drupal\Database\TransactionCommitFailedException;
use Drupal\Database\Driver\sqlite\Statement;
use Drupal\Database\Connection as DatabaseConnection;
use Drupal\Core\Database\Database;
use Drupal\Core\Database\TransactionNoActiveException;
use Drupal\Core\Database\TransactionNameNonUniqueException;
use Drupal\Core\Database\TransactionCommitFailedException;
use Drupal\Core\Database\Driver\sqlite\Statement;
use Drupal\Core\Database\Connection as DatabaseConnection;
use PDO;
use Exception;

View File

@ -1,8 +1,8 @@
<?php
namespace Drupal\Database\Driver\sqlite;
namespace Drupal\Core\Database\Driver\sqlite;
use Drupal\Database\Query\Delete as QueryDelete;
use Drupal\Core\Database\Query\Delete as QueryDelete;
/**
* SQLite specific implementation of DeleteQuery.

View File

@ -1,8 +1,8 @@
<?php
namespace Drupal\Database\Driver\sqlite;
namespace Drupal\Core\Database\Driver\sqlite;
use Drupal\Database\Query\Insert as QueryInsert;
use Drupal\Core\Database\Query\Insert as QueryInsert;
/**
* SQLite specific implementation of InsertQuery.

View File

@ -1,9 +1,9 @@
<?php
namespace Drupal\Database\Driver\sqlite\Install;
namespace Drupal\Core\Database\Driver\sqlite\Install;
use Drupal\Database\Install\Tasks as InstallTasks;
use Drupal\Core\Database\Install\Tasks as InstallTasks;
use SplFileInfo;

View File

@ -0,0 +1,7 @@
<?php
namespace Drupal\Core\Database\Driver\sqlite;
use Drupal\Core\Database\Query\Merge as QueryMerge;
class Merge extends QueryMerge { }

View File

@ -1,10 +1,10 @@
<?php
namespace Drupal\Database\Driver\sqlite;
namespace Drupal\Core\Database\Driver\sqlite;
use Drupal\Database\SchemaObjectExistsException;
use Drupal\Database\SchemaObjectDoesNotExistException;
use Drupal\Database\Schema as DatabaseSchema;
use Drupal\Core\Database\SchemaObjectExistsException;
use Drupal\Core\Database\SchemaObjectDoesNotExistException;
use Drupal\Core\Database\Schema as DatabaseSchema;
use Exception;

View File

@ -1,8 +1,8 @@
<?php
namespace Drupal\Database\Driver\sqlite;
namespace Drupal\Core\Database\Driver\sqlite;
use Drupal\Database\Query\Select as QuerySelect;
use Drupal\Core\Database\Query\Select as QuerySelect;
class Select extends QuerySelect {
public function forUpdate($set = TRUE) {

View File

@ -1,9 +1,9 @@
<?php
namespace Drupal\Database\Driver\sqlite;
namespace Drupal\Core\Database\Driver\sqlite;
use Drupal\Database\StatementPrefetch;
use Drupal\Database\StatementInterface;
use Drupal\Core\Database\StatementPrefetch;
use Drupal\Core\Database\StatementInterface;
use Iterator;
use PDOException;

View File

@ -0,0 +1,7 @@
<?php
namespace Drupal\Core\Database\Driver\sqlite;
use Drupal\Core\Database\Transaction as DatabaseTransaction;
class Transaction extends DatabaseTransaction { }

View File

@ -1,8 +1,8 @@
<?php
namespace Drupal\Database\Driver\sqlite;
namespace Drupal\Core\Database\Driver\sqlite;
use Drupal\Database\Query\Truncate as QueryTruncate;
use Drupal\Core\Database\Query\Truncate as QueryTruncate;
/**
* SQLite specific implementation of TruncateQuery.

View File

@ -1,10 +1,10 @@
<?php
namespace Drupal\Database\Driver\sqlite;
namespace Drupal\Core\Database\Driver\sqlite;
use Drupal\Database\Query\Condition;
use Drupal\Database\Query\ConditionInterface;
use Drupal\Database\Query\Update as QueryUpdate;
use Drupal\Core\Database\Query\Condition;
use Drupal\Core\Database\Query\ConditionInterface;
use Drupal\Core\Database\Query\Update as QueryUpdate;
/**
* SQLite specific implementation of UpdateQuery.

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\Database;
namespace Drupal\Core\Database;
use RuntimeException;

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\Database\Install;
namespace Drupal\Core\Database\Install;
use RuntimeException;

View File

@ -1,8 +1,8 @@
<?php
namespace Drupal\Database\Install;
namespace Drupal\Core\Database\Install;
use Drupal\Database\Database;
use Drupal\Core\Database\Database;
use PDO;

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\Database;
namespace Drupal\Core\Database;
/**
* Database query logger.

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\Database\Query;
namespace Drupal\Core\Database\Query;
/**
* Interface for a query that can be manipulated via an alter hook.

View File

@ -1,8 +1,8 @@
<?php
namespace Drupal\Database\Query;
namespace Drupal\Core\Database\Query;
use Drupal\Database\Connection;
use Drupal\Core\Database\Connection;
use Countable;

View File

@ -1,8 +1,8 @@
<?php
namespace Drupal\Database\Query;
namespace Drupal\Core\Database\Query;
use Drupal\Database\Connection;
use Drupal\Core\Database\Connection;
/**
* Interface for a conditional clause in a query.

View File

@ -1,9 +1,9 @@
<?php
namespace Drupal\Database\Query;
namespace Drupal\Core\Database\Query;
use Drupal\Database\Database;
use Drupal\Database\Connection;
use Drupal\Core\Database\Database;
use Drupal\Core\Database\Connection;
/**
* General class for an abstracted DELETE operation.

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\Database\Query;
namespace Drupal\Core\Database\Query;
/**
* Interface for extendable query objects.

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\Database\Query;
namespace Drupal\Core\Database\Query;
use RuntimeException;

View File

@ -1,8 +1,8 @@
<?php
namespace Drupal\Database\Query;
namespace Drupal\Core\Database\Query;
use Drupal\Database\Database;
use Drupal\Core\Database\Database;
/**
* General class for an abstracted INSERT query.

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\Database\Query;
namespace Drupal\Core\Database\Query;
use RuntimeException;

View File

@ -1,9 +1,9 @@
<?php
namespace Drupal\Database\Query;
namespace Drupal\Core\Database\Query;
use Drupal\Database\Database;
use Drupal\Database\Connection;
use Drupal\Core\Database\Database;
use Drupal\Core\Database\Connection;
use Exception;

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\Database\Query;
namespace Drupal\Core\Database\Query;
use Exception;

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\Database\Query;
namespace Drupal\Core\Database\Query;
/**
* Interface for a query that accepts placeholders.

View File

@ -1,9 +1,9 @@
<?php
namespace Drupal\Database\Query;
namespace Drupal\Core\Database\Query;
use Drupal\Database\Database;
use Drupal\Database\Connection;
use Drupal\Core\Database\Database;
use Drupal\Core\Database\Connection;
/**
* Base class for query builders.

View File

@ -1,9 +1,9 @@
<?php
namespace Drupal\Database\Query;
namespace Drupal\Core\Database\Query;
use Drupal\Database\Database;
use Drupal\Database\Connection;
use Drupal\Core\Database\Database;
use Drupal\Core\Database\Connection;
/**

View File

@ -1,8 +1,8 @@
<?php
namespace Drupal\Database\Query;
namespace Drupal\Core\Database\Query;
use Drupal\Database\Connection;
use Drupal\Core\Database\Connection;
/**
* The base extender class for Select queries.

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\Database\Query;
namespace Drupal\Core\Database\Query;
/**
* Interface definition for a Select Query object.

View File

@ -1,9 +1,9 @@
<?php
namespace Drupal\Database\Query;
namespace Drupal\Core\Database\Query;
use Drupal\Database\Database;
use Drupal\Database\Connection;
use Drupal\Core\Database\Database;
use Drupal\Core\Database\Connection;
/**

View File

@ -1,9 +1,9 @@
<?php
namespace Drupal\Database\Query;
namespace Drupal\Core\Database\Query;
use Drupal\Database\Database;
use Drupal\Database\Connection;
use Drupal\Core\Database\Database;
use Drupal\Core\Database\Connection;
/**
* General class for an abstracted UPDATE operation.

View File

@ -1,10 +1,10 @@
<?php
namespace Drupal\Database;
namespace Drupal\Core\Database;
use Drupal\Database\SchemaObjectExistsException;
use Drupal\Database\Query\Condition;
use Drupal\Database\Query\PlaceholderInterface;
use Drupal\Core\Database\SchemaObjectExistsException;
use Drupal\Core\Database\Query\Condition;
use Drupal\Core\Database\Query\PlaceholderInterface;
/**
* @defgroup schemaapi Schema API

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\Database;
namespace Drupal\Core\Database;
use RuntimeException;

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\Database;
namespace Drupal\Core\Database;
/**
* Exception thrown if an object being modified doesn't exist yet.

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\Database;
namespace Drupal\Core\Database;
/**
* Exception thrown if an object being created already exists.

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\Database;
namespace Drupal\Core\Database;
use PDO;
use PDOStatement;

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\Database;
namespace Drupal\Core\Database;
use Iterator;

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\Database;
namespace Drupal\Core\Database;
use Traversable;

View File

@ -1,8 +1,8 @@
<?php
namespace Drupal\Database;
namespace Drupal\Core\Database;
use Drupal\Database\Connection;
use Drupal\Core\Database\Connection;
use Iterator;
use PDO;
use PDOException;

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\Database;
namespace Drupal\Core\Database;
/**
* A wrapper class for creating and managing database transactions.

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\Database;
namespace Drupal\Core\Database;
/**
* Exception thrown when a commit() function fails.

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\Database;
namespace Drupal\Core\Database;
use RuntimeException;

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\Database;
namespace Drupal\Core\Database;
/**
* Exception to deny attempts to explicitly manage transactions.

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\Database;
namespace Drupal\Core\Database;
/**
* Exception thrown when a savepoint or transaction name occurs twice.

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\Database;
namespace Drupal\Core\Database;
/**
* Exception for when popTransaction() is called with no active transaction.

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\Database;
namespace Drupal\Core\Database;
/**
* Exception thrown when a rollback() resulted in other active transactions being rolled-back.

View File

@ -1,6 +1,6 @@
<?php
use Drupal\Database\Database;
use Drupal\Core\Database\Database;
/**
* @file

View File

@ -1,6 +1,6 @@
<?php
use Drupal\Database\Query\Select;
use Drupal\Core\Database\Query\Select;
/**
* @file

View File

@ -1,7 +1,7 @@
<?php
use Drupal\Database\Database;
use Drupal\Database\Query\Select;
use Drupal\Core\Database\Database;
use Drupal\Core\Database\Query\Select;
/**
* @file

View File

@ -1,6 +1,6 @@
<?php
use Drupal\Database\Database;
use Drupal\Core\Database\Database;
/**
* @file

View File

@ -1,6 +1,6 @@
<?php
use Drupal\Database\Query\SelectInterface;
use Drupal\Core\Database\Query\SelectInterface;
/**
* @file

View File

@ -1,8 +1,8 @@
<?php
use Drupal\Database\Query\AlterableInterface;
use Drupal\Database\Query\SelectExtender;
use Drupal\Database\Query\SelectInterface;
use Drupal\Core\Database\Query\AlterableInterface;
use Drupal\Core\Database\Query\SelectExtender;
use Drupal\Core\Database\Query\SelectInterface;
/**
* @file

View File

@ -1,6 +1,6 @@
<?php
use Drupal\Database\Database;
use Drupal\Core\Database\Database;
/**
* @file

View File

@ -1,7 +1,7 @@
<?php
use Drupal\Database\Query\SelectExtender;
use Drupal\Database\StatementEmpty;
use Drupal\Core\Database\Query\SelectExtender;
use Drupal\Core\Database\StatementEmpty;
/**
* @file

View File

@ -1,7 +1,7 @@
<?php
use Drupal\Database\Database;
use Drupal\Database\ConnectionNotDefinedException;
use Drupal\Core\Database\Database;
use Drupal\Core\Database\ConnectionNotDefinedException;
/**
* Global variable that holds information about the tests being run.

View File

@ -1,6 +1,6 @@
<?php
use Drupal\Database\Database;
use Drupal\Core\Database\Database;
/**
* @file

View File

@ -1,6 +1,6 @@
<?php
use Drupal\Database\Query\AlterableInterface;
use Drupal\Core\Database\Query\AlterableInterface;
/**
* Implements hook_query_alter().

View File

@ -1,13 +1,13 @@
<?php
use Drupal\Database\Database;
use Drupal\Database\StatementEmpty;
use Drupal\Database\StatementInterface;
use Drupal\Database\TransactionOutOfOrderException;
use Drupal\Database\TransactionNoActiveException;
use Drupal\Database\Query\Merge;
use Drupal\Database\Query\InvalidMergeQueryException;
use Drupal\Database\Query\NoFieldsException;
use Drupal\Core\Database\Database;
use Drupal\Core\Database\StatementEmpty;
use Drupal\Core\Database\StatementInterface;
use Drupal\Core\Database\TransactionOutOfOrderException;
use Drupal\Core\Database\TransactionNoActiveException;
use Drupal\Core\Database\Query\Merge;
use Drupal\Core\Database\Query\InvalidMergeQueryException;
use Drupal\Core\Database\Query\NoFieldsException;
/**
* Dummy class for fetching into a class.

View File

@ -1,6 +1,6 @@
<?php
use Drupal\Database\Database;
use Drupal\Core\Database\Database;
/**
* @file

View File

@ -1,6 +1,6 @@
<?php
use Drupal\Database\Database;
use Drupal\Core\Database\Database;
/**
* Perform end-to-end tests of the upgrade path.

View File

@ -1,6 +1,6 @@
<?php
use Drupal\Database\Database;
use Drupal\Core\Database\Database;
/**
* @file

View File

@ -1,6 +1,6 @@
<?php
use Drupal\Database\Database;
use Drupal\Core\Database\Database;
/**
* @file

View File

@ -1,6 +1,6 @@
<?php
use Drupal\Database\Query\SelectInterface;
use Drupal\Core\Database\Query\SelectInterface;
/**
* @file