10 calls to Database::setActiveConnection()
- DatabaseStorageTest::testConcurrent in core/
tests/ Drupal/ KernelTests/ Core/ KeyValueStore/ DatabaseStorageTest.php - Tests asynchronous table creation.
- DbImportCommand::runScript in core/
lib/ Drupal/ Core/ Command/ DbImportCommand.php - Run the database script.
- LoggingTest::testEnableMultiConnectionLogging in core/
tests/ Drupal/ KernelTests/ Core/ Database/ LoggingTest.php - Tests that we can log queries separately on different connections.
- MigrateDrupalTestBase::loadFixture in core/
modules/ migrate_drupal/ tests/ src/ Kernel/ MigrateDrupalTestBase.php - Loads a database fixture into the source database connection.
- MigrateUpgradeTestBase::loadFixture in core/
modules/ migrate_drupal_ui/ tests/ src/ Functional/ MigrateUpgradeTestBase.php - Loads a database fixture into the source database connection.
- SchemaTest::testFindTables in core/
tests/ Drupal/ KernelTests/ Core/ Database/ SchemaTest.php - Tests the findTables() method.
- Tasks::connect in core/
modules/ sqlite/ src/ Driver/ Database/ sqlite/ Install/ Tasks.php - Checks if we can connect to the database.
- Tasks::connect in core/
modules/ mysql/ src/ Driver/ Database/ mysql/ Install/ Tasks.php - Checks if we can connect to the database.
- Tasks::connect in core/
modules/ pgsql/ src/ Driver/ Database/ pgsql/ Install/ Tasks.php - Checks if we can connect to the database.
- Tasks::connect in core/
lib/ Drupal/ Core/ Database/ Install/ Tasks.php - Checks if we can connect to the database.
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.