Search for connection

  1. Search 7.x for connection
  2. Search 9.5.x for connection
  3. Search 8.9.x for connection
  4. Search 10.3.x for connection
  5. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
Connection class core/modules/sqlite/src/Driver/Database/sqlite/Connection.php SQLite implementation of \Drupal\Core\Database\Connection.
Connection class core/modules/mysql/src/Driver/Database/mysql/Connection.php MySQL implementation of \Drupal\Core\Database\Connection.
Connection class core/modules/system/tests/modules/driver_test/src/Driver/Database/DriverTestMysql/Connection.php MySQL test implementation of \Drupal\Core\Database\Connection.
Connection class core/modules/system/tests/modules/driver_test/src/Driver/Database/DriverTestMysqlDeprecatedVersion/Connection.php MySQL test implementation of \Drupal\Core\Database\Connection.
Connection class core/modules/system/tests/modules/driver_test/src/Driver/Database/DriverTestPgsql/Connection.php PostgreSQL implementation of \Drupal\Core\Database\Connection.
Connection class core/modules/pgsql/src/Driver/Database/pgsql/Connection.php PostgreSQL implementation of \Drupal\Core\Database\Connection.
Connection class core/tests/fixtures/database_drivers/module/core_fake/src/Driver/Database/CoreFake/Connection.php CoreFake implementation of \Drupal\Core\Database\Connection.
Connection class core/tests/fixtures/database_drivers/module/core_fake/src/Driver/Database/CoreFakeWithAllCustomClasses/Connection.php CoreFakeWithAllCustomClasses implementation of \Drupal\Core\Database\Connection.
Connection class core/tests/fixtures/database_drivers/core/CoreFake/Connection.php
Connection class core/tests/fixtures/database_drivers/custom/CoreFake/Connection.php

All search results

Title Object type File name Summary
KernelTestBase::tearDownCloseDatabaseConnection function core/tests/Drupal/KernelTests/KernelTestBase.php Additional tear down method to close the connection at the end.
KernelTestBaseDatabaseDriverModuleTest::getDatabaseConnectionInfo function core/tests/Drupal/KernelTests/KernelTestBaseDatabaseDriverModuleTest.php Returns the Database connection info to be used for this test.
KernelTestBaseTest::testGetDatabaseConnectionInfoWithOutManualSetDbUrl function core/tests/Drupal/KernelTests/KernelTestBaseTest.php @covers ::getDatabaseConnectionInfo
KeyValueDatabaseFactory::$connection property core/lib/Drupal/Core/KeyValueStore/KeyValueDatabaseFactory.php The database connection to use.
LegacyMatcherDumperTest::$connection property core/tests/Drupal/KernelTests/Core/Routing/LegacyMatcherDumperTest.php The connection.
Log::$connectionKey property core/lib/Drupal/Core/Database/Log.php The connection key for which this object is logging.
LoggingTest::testEnableMultiConnectionLogging function core/tests/Drupal/KernelTests/Core/Database/LoggingTest.php Tests that we can log queries separately on different connections.
LonelyMonkeyClass::$connection property core/modules/system/tests/modules/error_service_test/src/LonelyMonkeyClass.php The database connection.
MenuDeleteForm::$connection property core/modules/menu_ui/src/Form/MenuDeleteForm.php The database connection.
MenuTreeStorage::$connection property core/lib/Drupal/Core/Menu/MenuTreeStorage.php The database connection.
MenuTreeStorageSchemaUpdateTest::$connection property core/modules/system/tests/src/Functional/Update/MenuTreeStorageSchemaUpdateTest.php The database.
MenuTreeStorageTest::$connection property core/tests/Drupal/KernelTests/Core/Menu/MenuTreeStorageTest.php The database connection.
MigrateTestBase::cleanupMigrateConnection function core/modules/migrate/tests/src/Kernel/MigrateTestBase.php Cleans up the test migrate connection.
MigrateTestBase::createMigrationConnection function core/modules/migrate/tests/src/Kernel/MigrateTestBase.php Changes the database connection to the prefixed one.
MigrateUpgradeTestBase::createMigrationConnection function core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php Changes the database connection to the prefixed one.
MigrationConfigurationTrait::getConnection function core/modules/migrate_drupal/src/MigrationConfigurationTrait.php Gets the database connection for the source Drupal database.
MockTestConnection class core/modules/system/tests/src/Functional/FileTransfer/MockTestConnection.php Mock connection object for test case.
MockTestConnection.php file core/modules/system/tests/src/Functional/FileTransfer/MockTestConnection.php
MockTestConnection::$commandsRun property core/modules/system/tests/src/Functional/FileTransfer/MockTestConnection.php
MockTestConnection::$connectionString property core/modules/system/tests/src/Functional/FileTransfer/MockTestConnection.php
MockTestConnection::flushCommands function core/modules/system/tests/src/Functional/FileTransfer/MockTestConnection.php
MockTestConnection::run function core/modules/system/tests/src/Functional/FileTransfer/MockTestConnection.php
ModuleInstaller::$connection property core/lib/Drupal/Core/Extension/ModuleInstaller.php The database connection.
MysqlDriverTest::testConnection function core/modules/mysql/tests/src/Kernel/mysql/MysqlDriverTest.php @covers \Drupal\mysql\Driver\Database\mysql\Connection
NodeCounter::$connection property core/modules/statistics/src/Plugin/migrate/destination/NodeCounter.php The database connection.
NodeRevisionDeleteForm::$connection property core/modules/node/src/Form/NodeRevisionDeleteForm.php The database connection.
NodeStatisticsDatabaseStorage::$connection property core/modules/statistics/src/NodeStatisticsDatabaseStorage.php The database connection used.
NonPublicSchemaTest::$testingFakeConnection property core/modules/pgsql/tests/src/Kernel/pgsql/NonPublicSchemaTest.php The database connection for testing.
PDOConnection class core/modules/sqlite/src/Driver/Database/sqlite/PDOConnection.php SQLite-specific implementation of a PDO connection.
PDOConnection.php file core/modules/sqlite/src/Driver/Database/sqlite/PDOConnection.php
PDOConnection::beginTransaction function core/modules/sqlite/src/Driver/Database/sqlite/PDOConnection.php
PDOConnection::commit function core/modules/sqlite/src/Driver/Database/sqlite/PDOConnection.php
PDOConnection::rollBack function core/modules/sqlite/src/Driver/Database/sqlite/PDOConnection.php
PostgreSqlSequenceUpdateTest::$connection property core/modules/pgsql/tests/src/Functional/Database/PostgreSqlSequenceUpdateTest.php The database connection to use.
Query::$connection property core/lib/Drupal/Core/Database/Query/Query.php The connection object on which to run this query.
Query::$connection property core/lib/Drupal/Core/Entity/Query/Sql/Query.php
Query::$connectionKey property core/lib/Drupal/Core/Database/Query/Query.php The key of the connection object.
Query::$connectionTarget property core/lib/Drupal/Core/Database/Query/Query.php The target of the connection object.
Query::getConnection function core/lib/Drupal/Core/Database/Query/Query.php Gets the database connection to be used for the query.
QueryFactory::$connection property core/lib/Drupal/Core/Entity/Query/Sql/QueryFactory.php The database connection to use.
QueueDatabaseFactory::$connection property core/lib/Drupal/Core/Queue/QueueDatabaseFactory.php The database connection.
RouteProvider::$connection property core/lib/Drupal/Core/Routing/RouteProvider.php The database connection from which to read route information.
Schema::$connection property core/lib/Drupal/Core/Database/Schema.php The database connection.
SelectExtender::$connection property core/lib/Drupal/Core/Database/Query/SelectExtender.php The connection object on which to run this query.
ShortcutSetStorage::$connection property core/modules/shortcut/src/ShortcutSetStorage.php The database connection.
SimpletestTestRunResultsStorage::getConnection function core/lib/Drupal/Core/Test/SimpletestTestRunResultsStorage.php Returns the database connection to use for inserting assertions.
SimpletestTestRunResultsStorageTest::$connection property core/tests/Drupal/KernelTests/Core/Test/SimpletestTestRunResultsStorageTest.php The database connection for testing.
Sql::getConnection function core/modules/views/src/Plugin/views/query/Sql.php Gets the database connection to use for the view.
SqlBaseTest::testBrokenConnection function core/modules/migrate/tests/src/Kernel/SqlBaseTest.php Tests the exception when a connection is defined but not available.
SqlBaseTest::testConnectionTypes function core/modules/migrate/tests/src/Kernel/SqlBaseTest.php Tests different connection types.

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