Search for database

  1. Search 7.x for database
  2. Search 9.5.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
TempStoreDatabaseTest::$modules property core/tests/Drupal/KernelTests/Core/TempStore/TempStoreDatabaseTest.php Modules to enable.
TempStoreDatabaseTest::$objects property core/modules/user/tests/src/Kernel/TempStoreDatabaseTest.php An array of random stdClass objects.
TempStoreDatabaseTest::$objects property core/tests/Drupal/KernelTests/Core/TempStore/TempStoreDatabaseTest.php An array of random stdClass objects.
TempStoreDatabaseTest::$storeFactory property core/modules/user/tests/src/Kernel/TempStoreDatabaseTest.php A key/value store factory.
TempStoreDatabaseTest::$storeFactory property core/tests/Drupal/KernelTests/Core/TempStore/TempStoreDatabaseTest.php A key/value store factory.
TempStoreDatabaseTest::$users property core/modules/user/tests/src/Kernel/TempStoreDatabaseTest.php An array of (fake) user IDs.
TempStoreDatabaseTest::setUp function core/modules/user/tests/src/Kernel/TempStoreDatabaseTest.php
TempStoreDatabaseTest::setUp function core/tests/Drupal/KernelTests/Core/TempStore/TempStoreDatabaseTest.php
TempStoreDatabaseTest::testSharedTempStore function core/tests/Drupal/KernelTests/Core/TempStore/TempStoreDatabaseTest.php Tests the SharedTempStore API.
TempStoreDatabaseTest::testUserTempStore function core/modules/user/tests/src/Kernel/TempStoreDatabaseTest.php Tests the UserTempStore API.
TempstoreKeyUpdatePathTest::setDatabaseDumpFiles function core/modules/layout_builder/tests/src/Functional/Update/TempstoreKeyUpdatePathTest.php Set database dump files to be used.
TestBase::$databasePrefix property core/modules/simpletest/src/TestBase.php The database prefix of this test run.
TestBase::getDatabasePrefix function core/modules/simpletest/src/TestBase.php Gets the database prefix.
TestBase::prepareDatabasePrefix function core/modules/simpletest/src/TestBase.php Generates a database prefix for running tests.
TestDatabase class core/lib/Drupal/Core/Test/TestDatabase.php Provides helper methods for interacting with the fixture database.
TestDatabase.php file core/lib/Drupal/Core/Test/TestDatabase.php
TestDatabase::$databasePrefix property core/lib/Drupal/Core/Test/TestDatabase.php The test database prefix.
TestDatabase::$lockId property core/lib/Drupal/Core/Test/TestDatabase.php A random number used to ensure that test fixtures are unique to each test
method.
TestDatabase::getConnection function core/lib/Drupal/Core/Test/TestDatabase.php Returns the database connection to the site running Simpletest.
TestDatabase::getDatabasePrefix function core/lib/Drupal/Core/Test/TestDatabase.php Gets the test database prefix.
TestDatabase::getLockFile function core/lib/Drupal/Core/Test/TestDatabase.php Gets the lock file path.
TestDatabase::getTestLock function core/lib/Drupal/Core/Test/TestDatabase.php Generates a unique lock ID for the test method.
TestDatabase::getTestSitePath function core/lib/Drupal/Core/Test/TestDatabase.php Gets the relative path to the test site directory.
TestDatabase::insertAssert function core/lib/Drupal/Core/Test/TestDatabase.php Store an assertion from outside the testing context.
TestDatabase::lastTestGet function core/lib/Drupal/Core/Test/TestDatabase.php Get information about the last test that ran given a test ID.
TestDatabase::logRead function core/lib/Drupal/Core/Test/TestDatabase.php Reads the error log and reports any errors as assertion failures.
TestDatabase::processPhpUnitResults function core/lib/Drupal/Core/Test/TestDatabase.php Inserts the parsed PHPUnit results into {simpletest}.
TestDatabase::releaseAllTestLocks function core/lib/Drupal/Core/Test/TestDatabase.php Releases all test locks.
TestDatabase::releaseLock function core/lib/Drupal/Core/Test/TestDatabase.php Releases a lock.
TestDatabase::testingSchema function core/lib/Drupal/Core/Test/TestDatabase.php Defines the database schema for run-tests.sh and simpletest module.
TestDatabase::__construct function core/lib/Drupal/Core/Test/TestDatabase.php TestDatabase constructor.
TestDatabaseTest class core/tests/Drupal/Tests/Core/Test/TestDatabaseTest.php @coversDefaultClass \Drupal\Core\Test\TestDatabase[[api-linebreak]]
TestDatabaseTest.php file core/tests/Drupal/Tests/Core/Test/TestDatabaseTest.php
TestDatabaseTest::providerTestConstructor function core/tests/Drupal/Tests/Core/Test/TestDatabaseTest.php Data provider for self::testConstructor()
TestDatabaseTest::testConstructor function core/tests/Drupal/Tests/Core/Test/TestDatabaseTest.php @covers ::__construct[[api-linebreak]]
@covers ::getDatabasePrefix[[api-linebreak]]
@covers ::getTestSitePath[[api-linebreak]]
TestDatabaseTest::testConstructorException function core/tests/Drupal/Tests/Core/Test/TestDatabaseTest.php @covers ::__construct[[api-linebreak]]
TestDatabaseTest::testConstructorNullPrefix function core/tests/Drupal/Tests/Core/Test/TestDatabaseTest.php Verify that a test lock is generated if there is no provided prefix.
TestSetupTrait::changeDatabasePrefix function core/lib/Drupal/Core/Test/TestSetupTrait.php Changes the database connection to the prefixed one.
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.
TestSiteInstallCommand::$databasePrefix property core/tests/Drupal/TestSite/Commands/TestSiteInstallCommand.php The database prefix of this test run.
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.
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.
TextRequiredSummaryUpdateTest::setDatabaseDumpFiles function core/modules/text/tests/src/Functional/TextRequiredSummaryUpdateTest.php Set database dump files to be used.
UncaughtExceptionTest::testLostDatabaseConnection function core/tests/Drupal/FunctionalTests/Bootstrap/UncaughtExceptionTest.php Tests the case when the database connection is gone.
UpdateActionsWithEntityPluginsTest::setDatabaseDumpFiles function core/modules/system/tests/src/Functional/Update/UpdateActionsWithEntityPluginsTest.php Set database dump files to be used.
UpdateEntityDisplayTest::setDatabaseDumpFiles function core/modules/system/tests/src/Functional/Update/UpdateEntityDisplayTest.php Set database dump files to be used.

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