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
TempStoreDatabaseTest::testSharedTempStore function core/tests/Drupal/KernelTests/Core/TempStore/TempStoreDatabaseTest.php Tests the SharedTempStore API.
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 The test lock ID.
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::$databasePrefix property core/lib/Drupal/Core/Test/TestSetupTrait.php The database prefix of this test run.
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::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.
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.

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