Search for database

  1. Search 7.x for database
  2. Search 8.9.x for database
  3. Search 10.3.x for database
  4. Search 11.x for database
  5. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
database service core/core.services.yml Drupal\Core\Database\Connection
Database class core/lib/Drupal/Core/Database/Database.php Primary front-controller for the database system.

All search results

Title Object type File name Summary
TestSetupTrait::getDatabaseConnection function core/lib/Drupal/Core/Test/TestSetupTrait.php Returns the database connection to the site running Simpletest.
TestSetupTrait::prepareDatabasePrefix function core/lib/Drupal/Core/Test/TestSetupTrait.php Generates a database prefix for running tests.
TestSetupTraitTest::testChangeDatabasePrefix function core/tests/Drupal/Tests/Core/Test/TestSetupTraitTest.php Tests the SIMPLETEST_DB environment variable is used.
TestSiteApplicationTest::addTestDatabase function core/tests/Drupal/Tests/Scripts/TestSiteApplicationTest.php Adds the installed test site to the database connection info.
TestSiteInstallCommand::changeDatabasePrefix function core/tests/Drupal/TestSite/Commands/TestSiteInstallCommand.php
TestSiteInstallCommand::prepareDatabasePrefix function core/tests/Drupal/TestSite/Commands/TestSiteInstallCommand.php Generates a database prefix for running tests.
TestSqlBase::$database property core/modules/migrate/tests/src/Unit/SqlBaseTest.php The database object.
TestSqlBase::getDatabase function core/modules/migrate/tests/src/Unit/SqlBaseTest.php Gets the database connection object.
TestSqlBase::getDatabase function core/modules/migrate/tests/src/Kernel/SqlBaseTest.php Gets the database without caching it.
TestSqlBase::setDatabase function core/modules/migrate/tests/src/Unit/SqlBaseTest.php Allows us to set the database during tests.
TestSqlIdMap::getDatabase function core/modules/migrate/tests/src/Unit/TestSqlIdMap.php Gets the database connection.
TestTestDatabase class core/tests/Drupal/Tests/Core/Test/TestDatabaseTest.php Stub class supports TestDatabaseTest::testConstructorNullPrefix().
TestTestDatabase::getTestLock function core/tests/Drupal/Tests/Core/Test/TestDatabaseTest.php Generates a unique lock ID for the test method.
TourTipDeprecatedConfigUpdateTest::setDatabaseDumpFiles function core/modules/tour/tests/src/Functional/Update/TourTipDeprecatedConfigUpdateTest.php Set database dump files to be used.
TrackerController::$database property core/modules/tracker/src/Controller/TrackerController.php The database connection.
TrackerController::$databaseReplica property core/modules/tracker/src/Controller/TrackerController.php The database replica connection.
UidUpdateToSerialTest::setDatabaseDumpFiles function core/modules/user/tests/src/Functional/UidUpdateToSerialTest.php Set database dump files to be used.
UidUpdateToSerialTest::testDatabaseLoaded function core/modules/user/tests/src/Functional/UidUpdateToSerialTest.php Tests user_update_9301().
UncaughtExceptionTest::testLostDatabaseConnection function core/tests/Drupal/FunctionalTests/Bootstrap/UncaughtExceptionTest.php Tests the case when the database connection is gone.
UpdateAddViewUpdateNotificationsPermissionTest::setDatabaseDumpFiles function core/modules/update/tests/src/Functional/Update/UpdateAddViewUpdateNotificationsPermissionTest.php Set database dump files to be used.
UpdateEnableProviderDatabaseDriverTest class core/modules/system/tests/src/Functional/Update/UpdateEnableProviderDatabaseDriverTest.php Tests that update hooks are enabling the database driver providing module.
UpdateEnableProviderDatabaseDriverTest.php file core/modules/system/tests/src/Functional/Update/UpdateEnableProviderDatabaseDriverTest.php
UpdateEnableProviderDatabaseDriverTest::$defaultTheme property core/modules/system/tests/src/Functional/Update/UpdateEnableProviderDatabaseDriverTest.php The theme to install as the default for testing.
UpdateEnableProviderDatabaseDriverTest::setDatabaseDumpFiles function core/modules/system/tests/src/Functional/Update/UpdateEnableProviderDatabaseDriverTest.php Set database dump files to be used.
UpdateEnableProviderDatabaseDriverTest::testPostUpdateEnableProviderDatabaseDriverHook function core/modules/system/tests/src/Functional/Update/UpdateEnableProviderDatabaseDriverTest.php Tests that post update hooks are properly run.
UpdatePathTestBase::$databaseDumpFiles property core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php The file path(s) to the dumped database(s) to load into the child site.
UpdatePathTestBase::setDatabaseDumpFiles function core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php Set database dump files to be used.
UpdatePathTestBaseFilledTest::setDatabaseDumpFiles function core/modules/system/tests/src/Functional/UpdateSystem/UpdatePathTestBaseFilledTest.php Set database dump files to be used.
UpdatePathTestBaseTest::setDatabaseDumpFiles function core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php Set database dump files to be used.
UpdatePathTestBaseTest::testDatabaseLoaded function core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php Tests that the database was properly loaded.
UpdateScriptTestController::databaseUpdatesMenuItem function core/modules/system/tests/modules/update_script_test/src/Controller/UpdateScriptTestController.php Outputs a link to the database updates URL.
UserSearch::$database property core/modules/user/src/Plugin/Search/UserSearch.php The database connection.
UserUid::$database property core/modules/comment/src/Plugin/views/argument/UserUid.php Database Service Object.
UserUpdateRoleDependenciesTest::setDatabaseDumpFiles function core/modules/user/tests/src/Functional/Update/UserUpdateRoleDependenciesTest.php Set database dump files to be used.
ViewExecutable::$base_database property core/modules/views/src/ViewExecutable.php Allow to override the used database which is used for this query.
ViewsMultiValueFieldUpdateTest::setDatabaseDumpFiles function core/modules/views/tests/src/Functional/Update/ViewsMultiValueFieldUpdateTest.php Set database dump files to be used.
ViewsSettingsRenameTest::setDatabaseDumpFiles function core/modules/views/tests/src/Functional/Update/ViewsSettingsRenameTest.php Set database dump files to be used.
ViewsSortIdentifiersUpdateTest::setDatabaseDumpFiles function core/modules/views/tests/src/Functional/Update/ViewsSortIdentifiersUpdateTest.php Set database dump files to be used.
WorkspaceAssociation::$database property core/modules/workspaces/src/WorkspaceAssociation.php The database connection.
WorkspaceMerger::$database property core/modules/workspaces/src/WorkspaceMerger.php The database connection.
WorkspaceOperationFactory::$database property core/modules/workspaces/src/WorkspaceOperationFactory.php The database connection.
WorkspacePublisher::$database property core/modules/workspaces/src/WorkspacePublisher.php The database connection.

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