10 calls to Database::setActiveConnection()
- DbImportCommand::runScript in core/
lib/ Drupal/ Core/ Command/ DbImportCommand.php - Run the database script.
- db_set_active in core/
includes/ database.inc - Sets a new active database.
- 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/
lib/ Drupal/ Core/ Database/ Driver/ sqlite/ Install/ Tasks.php - Check if we can connect to the database.
- Tasks::connect in core/
lib/ Drupal/ Core/ Database/ Driver/ mysql/ Install/ Tasks.php - Check if we can connect to the database.
- Tasks::connect in core/
lib/ Drupal/ Core/ Database/ Driver/ pgsql/ Install/ Tasks.php - Check if we can connect to the database.
- Tasks::connect in core/
lib/ Drupal/ Core/ Database/ Install/ Tasks.php - Check 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.